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 [2]  Send TopicPrint
Locked Topic Can't upload anymore (SOLVED - USER ERROR) (Read 10993 times)
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Re: Can't upload anymore
Reply #20 - Jan 22nd, 2016 at 12:05am
 
I updated the driver with interesting results. I can load a sketch to an Arduino UNO using the Arduino IDE. It loads on COM6. I then attempt to load the same sketch using VS/VM and pointing it to COM6. It fails to load and says, "avrdude: ser_open(): can't open device "\\.\COM5": The system cannot find the file specified."

Eventually, after exiting VS and restarting a couple times, I got it to attempt to load on COM6, but the tx/rx led's on the board show no traffic and the output window says "Programmer is not responding". 

I removed the arduino usb device again and re-scanned the hardware. Now it shows COM4 and COM5 but VS/VM shows only COM6! And closing and opening VS doesn't change the result. 

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Re: Can't upload anymore
Reply #21 - Jan 22nd, 2016 at 12:49am
 
Would it help/make sense to use an FTDI driver like the SparkFun FTDI Basic Breakout - 5V?

I am getting very frustrated by this and I don't know how to proceed here. Everything I try seems to turn to mud. HELP!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload anymore
Reply #22 - Jan 22nd, 2016 at 1:07pm
 
It sounds like .NET is confused did you try to restart your pc (power off)

Otherwise manually change the port in device manager to something else via right click
  
Back to top
WWW  
IP Logged
 
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Re: Can't upload anymore
Reply #23 - Jan 26th, 2016 at 12:51am
 
I have tried repeatedly to get the driver working with only partial success. I can compile and upload sketches using the Arduino IDE but the VS/VM IDE fails every time. 

I have attached a simpler sketch (no external libraries) to show the problem. The compiler output is in output.txt in the root folder.

The results are identical every time: the upload failed:

Uploading to I/O board using 'Arduino as ISP'
Uploader started for board Arduino/Genuino Uno
Uploader will use programmer name: arduinoasisp
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude "-CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega328p -cstk500v1 -PCOM3 -b19200 le1\uno/TimerInterruptExample1.ino.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                    : COM3
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x03
Error during upload using programmer
Upload timed out waiting for a response

Upload failed

Upload timed out waiting for a response
Lips Sealed
Upload failed
The uploader returned an error
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x03
avrdude done.  Thank you.

  

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: Can't upload anymore
Reply #24 - Jan 26th, 2016 at 1:21am
 
Hi,

Please answer these two questions...

Is the Arduino Mega the ISP and the Arduino Uno the board you are trying to program with a sketch (via the Mega)?

Is the Arduino Uno on COM3?

It's exactly the error I would expect if you do not have a board setup to be an ISP. What are you clicking in the Arduino Ide to upload?

Maybe you just need to switch "Always use programmer for upload" on the "Visual Micro" menu off. Did you switch it on because of ...

Quote:
The Arduino IDE makes it look like "Arduino as ISP" is being used but it is not unless you click "Upload using programmer". An ISP is not normal usb upload.

Thanks

« Last Edit: Jan 26th, 2016 at 1:36am 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: Can't upload anymore
Reply #25 - Jan 26th, 2016 at 5:56am
 
I have been experiencing the upload problem with both the Mega and the Uno. The UNO is on COM3 and the MEGA comes up on COM4 or COM5. 

At any given time, I have only one of these two boards / sketches loaded, but the problem occurs with ALL boards.

The programmer is currently "Arduino as ISP" and the Always Use Programmer for Upload is enabled, but the graphic is not very bright so it is easy to miss seeing what state it is in. 

I just turned the "Always Use Programmer" feature off and VOILA! it uploaded. Finally!

Thanks, Tim. Cheesy Grin Roll Eyes
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload anymore - (SOLVED - USER ERROR)
Reply #26 - Jan 26th, 2016 at 2:16pm
 
Yes you hit the problem because you switched on "always upload using programmer" by mistake.
« Last Edit: Jan 26th, 2016 at 2:18pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint