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 Upload Failures (Read 2265 times)
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Upload Failures
Dec 17th, 2018 at 5:46am
Print Post  
I was merrily compiling along when, out of the blue my code stopped uploading. I changed USP ports several times, I tested with a different board. I tried a completely different program. I rebooted my computer. Same failure persists. If it isn't the board or my code, what could it be and how do I fix it?

The build output is attached.
« Last Edit: Dec 20th, 2018 at 8:10pm by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Loader Failures
Reply #1 - Dec 17th, 2018 at 12:34pm
Print Post  
This is the command to upload. Your can try it from a .bat file or cmd prompt

Code
Select All
D:\Arduino\hardware\tools\avr\bin\avrdude "-CD:\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega2560 -cwiring "-PCOM28" -b115200 -D anoBot.ino.hex:i" 




Check windows device manager to see which usb driver is installed.
« Last Edit: Dec 17th, 2018 at 12:34pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Re: Loader Failures
Reply #2 - Dec 17th, 2018 at 2:00pm
Print Post  
Thanks, but when I run that command, here's what I get:
Code
Select All
C:\Users\rhjon>D:\Arduino\hardware\tools\avr\bin\avrdude "-CD:\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega2560 -cwiring "-PCOM28" -b115200 -D anoBot.ino.hex:i"

avrdude: Version 6.3-20171130
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "D:\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM28
         Using Programmer              : wiring
         Overriding Baud Rate          : 115200
avrdude: ser_open(): can't open device "\\.\COM28": Access is denied.

avrdude: ser_drain(): read error: The handle is invalid.

avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done.  Thank you.


C:\Users\rhjon>
 



I checked Device Manager output and it lists Arduino Mega (COM28) and says "This device is working properly"
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload Failures
Reply #3 - Dec 17th, 2018 at 2:23pm
Print Post  
You are outside of Visual Micro when you run the command so can find help in more technical places for your toolchain.

The access denied error you are getting normally suggests the port is open in a serial monitor.

You should also check windows task manager to ensure the avrdude.exe process is not locked and hogging the port. It you see an avrdude process you should terminate it.
« Last Edit: Dec 20th, 2018 at 8:10pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint