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:
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'