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


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Can't upload anymore (SOLVED - USER ERROR)
Jan 18th, 2016 at 7:56am
 
I tried to test a DCcEle DCcduino uno board and the rest of the evening went into the toilet. I switched back to my Mega board and I can compile but not upload. For most other boards, I can't even compile - the button is grayed out.

Which programmer should I be using?

Here is the output:

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude "-CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega2560 -cstk500v1 -PCOM6 -b19200 60/Rover.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
Error during upload using programmer
Upload failed

Upload failed
The uploader returned an error
         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
         Using Port                    : COM6
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
avrdude: ser_open(): can't open device "\\.\COM6": The system cannot find the file specified.
avrdude done.  Thank you.
« Last Edit: Jan 26th, 2016 at 2:17pm by Tim@Visual Micro »  
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 #1 - Jan 19th, 2016 at 1:44am
 
I really need some help with this problem. I am dead in the water - can't upload anything.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload anymore
Reply #2 - Jan 19th, 2016 at 3:20am
 
Sorry. Problem is standardisation of upload file name. It should be looking for file with .ino.hex extension not just hex

I will look to see if I can auto detect older definitions

Pls give url to your hardware core
  
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 #3 - Jan 19th, 2016 at 4:12am
 
Please translate what you just said, "give url to your hardware core" <-- I have no idea what you are asking me to do, and I have no idea how to solve this problem. I tried deleting everything in the AppData....rover folder, but... same problem. 

And am I using the correct "Programmer"? If not, what should I be using?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload anymore
Reply #4 - Jan 19th, 2016 at 4:24am
 
Are you sure you are on latest visual micro?
  
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 #5 - Jan 19th, 2016 at 6:00am
 
Yes. I just downloaded the most recent and tried again. Same results. I don't even see the compile or upload buttons. Build only shows "Run code analysis..." 

Programmer is "Arduino as ISP". Is this correct?

The COM port list does not show any Arduino ports.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload anymore
Reply #6 - Jan 19th, 2016 at 12:14pm
 
If you have no com ports that will be the issue unless you are saying that you have a programmer?

I will look at it tonight

Thanks
« Last Edit: Jan 19th, 2016 at 12:15pm by Tim@Visual Micro »  
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 #7 - Jan 19th, 2016 at 4:07pm
 
I have plenty of com ports, but in some cases, none that show "Arduino". There are two issues surfacing here:

1) Being able to compile and upload
2) Upload failure

The first issue seems to be related to the board I am using at the time. Genuine Arduino boards seem to work, but a SainSmart Arduino UNO does not result in being able to see an Arduino port and does not show the compile and upload buttons.

When I do use a genuine Arduino, I get this message:

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude "-CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega328p -cstk500v1 -PCOM4 -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/
Error during upload using programmer
Upload failed

Upload failed
         Copyright (c) 2007-2009 Joerg Wunsch
The uploader returned an error
         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
         Using Port                    : COM4
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
avrdude: ser_open(): can't open device "\\.\COM4": The system cannot find the file specified.
avrdude done.  Thank you.

Both issues result in my being dead in the water. Both seemed to happen as a result of buying and trying the cheap DCcle DCcudino uno board.  Lips Sealed
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload anymore
Reply #8 - Jan 19th, 2016 at 4:30pm
 
Could you please post full compiler output.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload anymore
Reply #9 - Jan 19th, 2016 at 5:31pm
 
Bob, if you don't have a programmer then make sure you have not switched on "Visual Micro>Always upload using programmer" by mistake
  
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 #10 - Jan 19th, 2016 at 7:49pm
 
Always upload using programmer is turned on. The entire output from the compile is attached.

  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload anymore
Reply #11 - Jan 19th, 2016 at 7:51pm
 
So you can confirm you use an arduino as isp to upload and not normal usb?
  
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 #12 - Jan 19th, 2016 at 8:43pm
 
Yes, I confirm that.
  
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 #13 - Jan 21st, 2016 at 6:43pm
 
I am still encountering this problem and I am dead in the water until I can fix it. PLEASE HELP.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload anymore
Reply #14 - Jan 21st, 2016 at 10:01pm
 
Hi Bob,

Sorry I forgot to update this thread when 1601.11. sp4 was released on the 18th. 

You should be getting a little flag symbol at the top of the ide when new versions of visual micro are released?

If so then the Release Notes should always have a note of what is fixed.
« Last Edit: Jan 21st, 2016 at 10:09pm by Tim@Visual Micro »  
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 #15 - Jan 21st, 2016 at 10:23pm
 
I updated the code but still cannot upload to the board. It says:
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                    : COM6
         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_getsync() attempt 2 of 10: not in sync: resp=0x77
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x1a
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xfe
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xd1
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xff
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xd0
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xcf
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xf2
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x40
Error during upload using programmer
Upload failed

Upload failed
The uploader returned an error
avrdude done.  Thank you.
  
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 #16 - Jan 21st, 2016 at 10:24pm
 
The entire output from the compile is attached.
  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload anymore
Reply #17 - Jan 21st, 2016 at 10:30pm
 
What are you clicking to upload? 

That's no where near the full output?

Use the Visual Micro toolbar or Debug>Start with/without debugging" to upload.

The error is certainly different and looks like a usb issue. Maybe the port is confused, reconnect the board.

But in any event the visual micro version is in "tools>extensions and updates" and the "Visual Micro>Verbose" option gives us useful stuff
  
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 #18 - Jan 21st, 2016 at 10:43pm
 
The version is 1601.21.0. 

I agree that there is a port problem. I purchased a cheap board (DCcEle DCcduino.uno) and couldn't get it to work. Google pointed me to a driver that I installed. That didn't work either, so I uninstalled it. Today, I uninstalled Arduino entirely, deleted the C:/Program... folder and reinstalled the current version. Then I updated to the latest VM version as per your advice. 

All indicators point to a problem with the USB driver somehow. Can you point me to a link to replace/update it?

Thanks, Tim.
  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload anymore
Reply #19 - Jan 21st, 2016 at 11:20pm
 
Open control panel devices. Right click uno or isp in ports list. Click remove and.click delete driver.

Then right click unknown port and update driver using drivers folder below arduino ide
« Last Edit: Jan 22nd, 2016 at 10:23pm by Tim@Visual Micro »  
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 #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: 12188
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
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: 12188
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
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: 12188
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
IP Logged
 
Page Index Toggle Pages: [1] 
Send TopicPrint