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 Visual micro with atmel studio 6.1 won't upload (Read 8501 times)
Nick Burgmeijer
Newbies
*
Offline


Posts: 5
Joined: Nov 11th, 2013
Visual micro with atmel studio 6.1 won't upload
Nov 12th, 2013 at 8:03am
Print Post  
I'm having trouble uploading sketches with atmel studio 6.1(latest). I'm the latest arduino IDE 1.5.x Beta. And the latest visual micro. I have no problems running it on my desktop, but for some reason I cannot upload using my laptop. 
It's an intel core i3 with windows 7 x64 enterprise. 

I'm sure all the settings are correct in visual micro. I'm trying to upload to a Uno R3. It's sitting on com9 and when I try to upload it just stays on uploading....
When i monitor com9 I get the following error. 
--------------------------
Visual.Micro.A6

Unexpected error during upload
Object reference not set to an instance of an object. 
---------------------------

Googling around makes me believe its a .NET framework error. 

As said above, I have no problems at all using the same board and exact same software on my desktop.

P.S. Also tried removing everything, including all .NET framework and VS2010 references, and reinstalling.


P.P.S. Uploading using the arduino IDE yields no problem on the laptop

P.P.P.S. Here's the build verbose if it's of any help:

Code
Select All
Compiling 'Blink' for 'Arduino Uno'
Build folder: file:///C:/Users/RSG/AppData/Local/VMicro/Arduino/Builds/Blink/uno
SketchLibFolders
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino;C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard;c:\program files (x86)\arduino\hardware\tools\avr\avr\include\;c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\;c:\program files (x86)\arduino\hardware\tools\avr\avr\;c:\program files (x86)\arduino\hardware\tools\avr\lib\gcc\avr\4.3.2\include\;
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
Sketchbook: file:///C:/Users/RSG/Documents/Arduino
"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=154 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\RSG\AppData\Local\VMicro\Arduino\Builds\Blink\uno\Blink.cpp" -o "C:\Users\RSG\AppData\Local\VMicro\Arduino\Builds\Blink\uno\Blink.cpp.o" -DVISUALMICRO_COMPILER_VER=1
"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc" -Os -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\RSG\AppData\Local\VMicro\Arduino\Builds\Blink\uno/Blink.elf" "C:\Users\RSG\AppData\Local\VMicro\Arduino\Builds\Blink\uno\Blink.cpp.o" "C:\Users\RSG\AppData\Local\VMicro\Arduino\Builds\Blink\uno/core.a" "-LC:\Users\RSG\AppData\Local\VMicro\Arduino\Builds\Blink\uno" -lm
"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\RSG\AppData\Local\VMicro\Arduino\Builds\Blink\uno/Blink.elf" "C:\Users\RSG\AppData\Local\VMicro\Arduino\Builds\Blink\uno/Blink.eep"
"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-objcopy" -O ihex -R .eeprom "C:\Users\RSG\AppData\Local\VMicro\Arduino\Builds\Blink\uno/Blink.elf" "C:\Users\RSG\AppData\Local\VMicro\Arduino\Builds\Blink\uno/Blink.hex"
Binary sketch size: 1114 bytes (used 3% of a 32256 byte maximum) (0.50 secs)
Minimum Memory Usage: 9 bytes (0% of a 2048 byte maximum)
Uploading to I/O board using 'COM9'
 

« Last Edit: Nov 12th, 2013 at 8:54am by Nick Burgmeijer »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro with atmel studio 6.1 won't upload
Reply #1 - Nov 12th, 2013 at 8:06pm
Print Post  
Hi Nick,

Sorry you are having this problem it is a strange one.

With the verbose switched on, please click "Build>Clean Solution" then attempt to compile upload again. Then email the output.

Please also also open Arduino Ide and switch on "File>Preferences>Upload Verbose". Then email the output after attempting upload.

Thanks
  
Back to top
IP Logged
 
Nick Burgmeijer
Newbies
*
Offline


Posts: 5
Joined: Nov 11th, 2013
Re: Visual micro with atmel studio 6.1 won't upload
Reply #2 - Nov 13th, 2013 at 9:03am
Print Post  
email send to: info@visualmicro.com
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro with atmel studio 6.1 won't upload
Reply #3 - Nov 13th, 2013 at 6:32pm
Print Post  
Hi Nick,

Thanks for the files. They all look fine so I will just ask a few questions hoping to understand what might cause something to fail that works for so many.

1)
Does this file exist after Visual Micro compiles?
C:\Users\RSG\AppData\Local\VMicro\Arduino\Builds\Blink\uno/Blink.hex

2)
Which version of Visual Micro do you have installed? see "Tools>Options>Visual Micro>Version"

3)
Please upload a small sketch to the arduino that sends a simple serial message that can be viewed in the Arduino Ide serial monitor? Can the same message be viewed in the Visual Micro Serial Monitor in Atmel Studio?

4) Was the Arduino Ide Serial Monitor closed when you attempted to upload from Atmel Studio?

Thanks
  
Back to top
IP Logged
 
Nick Burgmeijer
Newbies
*
Offline


Posts: 5
Joined: Nov 11th, 2013
Re: Visual micro with atmel studio 6.1 won't upload
Reply #4 - Nov 14th, 2013 at 8:07am
Print Post  
1) It does

2) 1.1309.11

3) Yes I can view a serial message in VS and in arduino IDE

4) Yups 100% sure

When trying to upload from VS with VM. This is what the serial monitor has to say:

Code
Select All
Port closed
Uploading to I/O board 



And then I get a window pop-up with this message:

Code
Select All
Visual.Micro.A6

Unexpected error during upload
Object reference not set to an instance of an object.  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro with atmel studio 6.1 won't upload
Reply #5 - Nov 14th, 2013 at 8:42pm
Print Post  
So much is working the upload is a a minor function which should also work. I need to make a release over the next week and will add some detailed trace for the upload so we can see what is failing more easily.

Please use the external editor feature of the arduino ide for upload until then. Sorry and thanks for the report.
  
Back to top
IP Logged
 
Nick Burgmeijer
Newbies
*
Offline


Posts: 5
Joined: Nov 11th, 2013
Re: Visual micro with atmel studio 6.1 won't upload
Reply #6 - Nov 15th, 2013 at 6:57am
Print Post  
Ok, i'll await the release. Till then i'll use a desktop on which it's working fine.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint