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 Cannot upload to the board after upgrading to the latest version (1512.28) (Read 6696 times)
Alexey
Newbies
*
Offline


Posts: 4
Joined: Dec 29th, 2015
Cannot upload to the board after upgrading to the latest version (1512.28)
Dec 29th, 2015 at 10:12pm
Print Post  
Hello,

Yesterday I upgraded the plugin to the latest version and now I cannot upload sketches to the board. The sketch compiles and uploading process starts. The led on pin 13 blinks a couple of times, but then it seems like the old sketch starts running and Visual Studio hangs. RX led on the board keeps blinking once every couple of seconds, but TX led stays off. After a while I get a bunch of messages like the following:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x80
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x80
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x80


The symptoms I'm getting are the same as in this topic. Indeed, removing and reinstalling the serial port driver solves the issue, but as soon as I try to upload something from VS it breaks again. Uploading from Arduino IDE works fine.

I'm guessing maybe board type setting is somehow incorrect. I'm using an Arduino Uno board and it seems it's being detected correctly. I tried selecting it manually, but to no avail...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot upload to the board after upgrading to the latest version (1512.28)
Reply #1 - Dec 29th, 2015 at 10:38pm
Print Post  
Hi,

Please switch on "visual micro>verbose messages" then try the compile/upload.

Post the output here in an attachment or email to info[at]visualmicro.com

Thanks
  
Back to top
IP Logged
 
Alexey
Newbies
*
Offline


Posts: 4
Joined: Dec 29th, 2015
Re: Cannot upload to the board after upgrading to the latest version (1512.28)
Reply #2 - Dec 30th, 2015 at 6:53pm
Print Post  
Here you go:


Compiling 'Sketch1' for 'Arduino Uno'
Build folder: file:///C:/Users/***/AppData/Local/V.Micro/Arduino/Builds/Sketch1/uno
Summary: Header=1 Prototypes=7 Imports=0
Additional Defines: 
Architecture Tools: C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/
Sketchbook: file:\\\C:\Users\***\Documents\Arduino
Core Include Paths
Include Path 'C:\Users\***\Documents\Visual Studio 2015\Projects\Sketch1\Sketch1'
Include Path 'C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino'
Include Path 'C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard'
Build Core Paths: C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Users\***\Documents\Visual Studio 2015\Projects\Sketch1\Sketch1" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\***\AppData\Local\V.Micro\Arduino\Builds\Sketch1\uno\Sketch1.cpp" -o "C:\Users\***\AppData\Local\V.Micro\Arduino\Builds\Sketch1\uno\Sketch1.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\***\AppData\Local\V.Micro\Arduino\Builds\Sketch1\uno/Sketch1.elf" "C:\Users\***\AppData\Local\V.Micro\Arduino\Builds\Sketch1\uno\Sketch1.cpp.o" "C:\Users\***\AppData\Local\V.Micro\Arduino\Builds\Sketch1\uno/core.a" "-LC:\Users\***\AppData\Local\V.Micro\Arduino\Builds\Sketch1\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\***\AppData\Local\V.Micro\Arduino\Builds\Sketch1\uno/Sketch1.elf" "C:\Users\***\AppData\Local\V.Micro\Arduino\Builds\Sketch1\uno/Sketch1.eep"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\***\AppData\Local\V.Micro\Arduino\Builds\Sketch1\uno/Sketch1.elf" "C:\Users\***\AppData\Local\V.Micro\Arduino\Builds\Sketch1\uno/Sketch1.hex"
Binary sketch size: 1,984 bytes (used 6% of a 32,256 byte maximum) (0.92 secs)
Minimum Memory Usage: 219 bytes (11% of a 2048 byte maximum)
 
Uploading to I/O board using 'COM4'
Uploader started for board Arduino Uno
Upload method will be: bootloader
Uploading via Bootloader 
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude "-CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega328p -carduino -PCOM4 -b115200 -D .hex:i"
avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch
         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
         Using Port                    : COM4
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
avrdude done.  Thank you.
Upload failed
  
Back to top
 
IP Logged
 
Alexey
Newbies
*
Offline


Posts: 4
Joined: Dec 29th, 2015
Re: Cannot upload to the board after upgrading to the latest version (1512.28)
Reply #3 - Jan 3rd, 2016 at 9:36pm
Print Post  
Hello,

Have you been able to take a look?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot upload to the board after upgrading to the latest version (1512.28)
Reply #4 - Jan 3rd, 2016 at 9:59pm
Print Post  
1)
Sorry, I thought I had asked if you also upgraded the arduino ide when you updated Visual Micro?

2)
By the way it's not visual micro that does the upload but the tool chain below the arduino ide. You can see the command in the output you posted.

You could put it in a .bat file and try it yourself. Also it would be useful to see the same output from the arduino ide after enabling "file>preferences>verbose upload"

Code
Select All
"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude" "-CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega328p -carduino -PCOM4 -b115200 -D  



ps: I have added quotes to the avrdude command which are not shown in the verbose output

If the .bat works but Visual Micro fails then I can look at the port reset just prior to upload.

3)
You can also switch on file>preferences>external in the arduino ide to upload in the short term. It allows the same sketch to be open in both vm and arduino but arduino in read-only auto detect changes mode.
« Last Edit: Jan 3rd, 2016 at 10:02pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Alexey
Newbies
*
Offline


Posts: 4
Joined: Dec 29th, 2015
Re: Cannot upload to the board after upgrading to the latest version (1512.28)
Reply #5 - Jan 5th, 2016 at 7:30pm
Print Post  
Hello,

I don't know what happened, but today I tried reproducing the issue to collect the information you requested and I could not do it anymore. Everything seems to work fine. I guess it's a good thing, although I hope it won't come back one day to haunt me Smiley 

Sorry for bothering you.

Have a nice day.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot upload to the board after upgrading to the latest version (1512.28)
Reply #6 - Jan 5th, 2016 at 7:48pm
Print Post  
It's possible the pc usb port had become confused. 

Happens rarley but usually solved by reconnecting the usb, using a different usb port or rebooting. It's also possible that using one of the programmer options without a programmer left the port in a bad state.

Anyway thanks for the update great to hear its working.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint