Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can't get Atmel and visual micro to work?? (Read 6851 times)
Cactusface
Newbies
*
Offline


Posts: 2
Joined: Aug 25th, 2014
Can't get Atmel and visual micro to work??
Sep 3rd, 2014 at 8:22am
Print Post  
Hi All,
         I'm new here and here's my first post, like many I long for a better IDE then the Arduino one. I started with Picaxes some years back, poor basic but a very good IDE, still that was then. 

After a couple of go's at installing Atmel Studio and Visual micro, nothing worked? or at least I could'nt get it to work, which I am sure is me!! So a good clean up and a re-install seems to have least go them working.  I also followed the on line instructions..

But pressing F5 or F7 produces the same failed result...
Even trying it with Blink13 fails, so somewhere I must have something set wrong, do I need to be bothered? by the debug or relese settings?  I have of course checked the board type settings and com port, perhaps I am missing something.

Hope someone can point me to the error of my ways, here's the message from the output window.

Quote:
Compiling 'Blink13' for 'Arduino Uno'
Build folder: file:///C:/Users/Mel/AppData/Local/VMicro/Arduino/Builds/Blink13/uno
Summary: Header=1 Prototypes=3 Imports=0
Additional Defines: VISUALMICRO_COMPILER_VER=1;
Architecture Tools: c:\Program Files (x86)\Arduino\hardware\tools\avr\bin\
GCC: 4.3.2
System.UriFormatException: Invalid URI: The format of the URI could not be determined.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   at System.Uri..ctor(String uriString)
   at processing.app.SketchCompilerArduino.compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Project oProject, Boolean IsDebugStartCommand)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.Compile(Project oProject, Boolean IsDebugStartCommand)


Kind regards.

Mel.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't get Atmel and visual micro to work??
Reply #1 - Sep 4th, 2014 at 9:48am
Print Post  
Hi,

Sorry for the delay.

Do not be concerned about debug/release at the moment. 

The error is a compile error and suggests we might have a config issue. 

It is not an error I have seen before so let us look at your config which should hopefully show the issue.

Please switch on Tools>Options>Visual Micro>Compiler>Verbose and Tools>Options>Visual Micro>Compiler>Show build properties. 

Then email the output after an attempted compile to info[at]visualmicro.com

Thanks
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't get Atmel and visual micro to work??
Reply #2 - Sep 10th, 2014 at 10:56am
Print Post  
Hi,

Sorry for the delay and thanks for the info.

It appears your sketchbook folder is wrong User\Mel\Mydocuments\Arduino

I suggest you remove the sketchbook folder from Visual Micro config because it is optional and will default to the correct location.

Alternatively if you set your sketchbook location then please set a valid path. An example of a valid path will be something that starts with a drive letter followed by a colon. User\Mel\Mydocuments\Arduino is not valid.

Thanks
« Last Edit: Sep 10th, 2014 at 10:56am by Tim@Visual Micro »  
Back to top
IP Logged
 
Cactusface
Newbies
*
Offline


Posts: 2
Joined: Aug 25th, 2014
Re: Can't get Atmel and visual micro to work??
Reply #3 - Sep 11th, 2014 at 7:21am
Print Post  
Hi Tim,
                And many thanks for your reply, much apreceated, It did the trick! I now have my skeches at C:\Arduino. The simple stuff like blink13, etc compile and load without any problems, but if I try a sketch that has an #include lib, that fails to compile? as I assume it can't now find the LIBs folder, which is in the folder with my sketches?? is that right? This is what the output window seems to be saying. This time it's a Nano, but simple blink etc was a Uno. No looking more carefully it's only the LCD-i2c lib it can't find......

Must go back and investigate!!

Thanks and Regards

Mel.

Code
Select All
Board Properties
name=Arduino Nano w/ ATmega328
upload.protocol=arduino
upload.maximum_size=30720
upload.speed=57600
bootloader.low_fuses=0xFF
bootloader.high_fuses=0xDA
bootloader.extended_fuses=0x05
bootloader.path=atmega
bootloader.file=ATmegaBOOT_168_atmega328.hex
bootloader.unlock_bits=0x3F
bootloader.lock_bits=0x0F
build.mcu=atmega328p
build.f_cpu=16000000L
build.core=arduino
build.variant=eightanaloginputs
runtime.ide.path=c:\Program Files (x86)\Arduino
build.system.path=c:\Program Files (x86)\Arduino\hardware\arduino\system
runtime.ide.version=105
originalid=nano328
vm.platform.root.path=C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\arduino10x
vm.core.include=arduino.h
ide.hint=Arduino 0023 and 1.0.x Ide
ide.location.key=Arduino
ide.location.ide.winreg=Arduino 1.0.x Application
ide.location.sketchbook.winreg=Arduino 1.0.x Sketchbook
ide.location.sketchbook.preferences=sketchbook.path
ide.location.sketchbook.default=%MYDOCUMENTS%\arduino
ide.location.preferences=%VM_APPDATA_ROAMING%\arduino\preferences.txt
ide.default.package=arduino
ide.default.platform=avr
ide.multiplatform=true
ide.includes=arduino.h
ide.platformswithoutpackage=true
ide.includes.fallback=wprogram.h
ide.extension=ino
ide.extension.fallback=pde
ide.versionLTEQ=149
ide.exe=arduino.exe
ide.hosts=atmel
ide.url=http://arduino.cc/en/Main/Software
vm.debug=true
software=ARDUINO
ide.appid=arduino10x
location.sketchbook=c:\Arduino
build.board=AVR_NANO328
vm.boardsource.path=c:\Program Files (x86)\Arduino\hardware\arduino
vm.platformname.name=avr
build.arch=AVR
vm.runtime.compiler.showwarnings=true

Compiling 'NanoZumo' for 'Arduino Nano w/ ATmega328'
Build folder: file:///C:/Users/Mel/AppData/Local/VMicro/Arduino/Builds/NanoZumo/nano328
Summary: Header=1 Prototypes=17 Imports=4
Additional Defines: VISUALMICRO_COMPILER_VER=1;
Architecture Tools: c:\Program Files (x86)\Arduino\hardware\tools\avr\bin\
GCC: 4.3.2
Sketchbook: file:///c:/Arduino
Core Include Paths
Include Path 'c:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino'
Include Path 'c:\Program Files (x86)\Arduino\hardware\arduino\variants\eightanaloginputs'
Library Include Paths (1)
Include Path 'c:\Arduino\libraries\Wire'
Platform Libraries Root Include Paths
Include Path 'c:\Program Files (x86)\Arduino\libraries'
Include Path 'c:\Program Files (x86)\Arduino\hardware\arduino\libraries'
Include Path 'C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers'
Include Path 'c:\Arduino\libraries'
c:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I"c:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino" -I"c:\Program Files (x86)\Arduino\hardware\arduino\variants\eightanaloginputs" -I"c:\Arduino\libraries\Wire" -I"c:\Program Files (x86)\Arduino\libraries" -I"c:\Program Files (x86)\Arduino\hardware\arduino\libraries" -I"C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"c:\Arduino\libraries" -o o"    -DVISUALMICRO_COMPILER_VER=1
NanoZumo.ino:16:20: warning: FastIO.h: No such file or directory
NanoZumo.ino:17:19: warning: I2CIO.h: No such file or directory
NanoZumo.ino:18:31: warning: LiquidCrystal_I2C.h: No such file or directory
NanoZumo.ino:20: error: 'LiquidCrystal_I2C' does not name a type
NanoZumo.ino:In function 'void setup()'
NanoZumo.ino:32: error: 'lcd' was not declared in this scope
NanoZumo.ino:In function 'void loop()'
NanoZumo.ino:64: error: 'lcd' was not declared in this scope
NanoZumo.ino:85: error: 'lcd' was not declared in this scope
NanoZumo.ino:In function 'int Back(int)'
NanoZumo.ino:158: warning: no return statement in function returning non-void
NanoZumo.ino:In function 'void BackOff()'
NanoZumo.ino:163: error: 'lcd' was not declared in this scope
NanoZumo.ino:In function 'void battCheck()'
NanoZumo.ino:286: error: 'lcd' was not declared in this scope
Error compiling
 

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't get Atmel and visual micro to work??
Reply #4 - Sep 11th, 2014 at 9:43am
Print Post  
Hi,

Does it work in the Arduino IDE?

Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint