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
Hot Topic (More than 8 Replies) Re: Visual micro not uploading (Read 6332 times)
OldTimer
Newbies
*
Offline


Posts: 9
Joined: Jun 23rd, 2017
Re: Visual micro not uploading
Jun 23rd, 2017 at 10:10am
Print Post  
Upload Problem

Hello
I am having the same problems as this post and 
  Wonder is there a fix or work around.
http://www.visualmicro.com/forums/YaBB.pl?num=1376235112
In addition I have successfully (on very rare occasion) 
Been able to upload

Equip.
Visual studio 2015 version 14.0.25425.01 updates 3
Visual micro 1.1702.15
Visual micro minor 1705.7
Windows 7 x32
Standard sub cable (works fine with Arduino IDE) 

Partial Output from upload.

System wide configuration file is "C:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf"
         Using Port                    : COM4
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x19


I have removed and reinstalled both Arduino/Visual Micro twice..

Thanks for a reply

Wayne
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro not uploading
Reply #1 - Jun 23rd, 2017 at 11:00am
Print Post  
Hi,

Hi I have split the post because it is clearer to have your own thread. The one you picked was from 4 years ago and although an upload issue it is different.

Please ensure you are using the latest visual micro version

Please confirm if it works in arduino ide?

Confirm which board you are using?

Switch on "vmicro>compiler>verbose" and "show build properties" then try the upload and post the output as a .txt file or email to info@visualmicro.com along with a link to this post

Thanks
  
Back to top
IP Logged
 
OldTimer
Newbies
*
Offline


Posts: 9
Joined: Jun 23rd, 2017
Re: Visual micro not uploading
Reply #2 - Jun 23rd, 2017 at 2:11pm
Print Post  

Sorry for the bad post, met to create New.
Thanks for moving

per your reguest:
{
Visual Micro Download 6/18/17, ver 1.1702.15

Visual Studio is ver15 need to reorganize the system before I upgrade.

Yes Arduino IDE complies and Uploads.

Using Arduino UNO mega r3 chip ATMega328P-PU
}



Compile Output:

Compiling 'Sketch1' for 'Arduino/Genuino Uno'
Build Folder: file:///C:/Users/Wayne/AppData/Local/Temp/VMBuilds/Sketch1/uno/Release
Summary: Header=1 Prototypes=3 Imports=2
Additional Defines: 
Architecture Tools: file:///C:/Program%20Files/Arduino/hardware/tools/avr/bin/
Api: 1705.7
Sketch Book: file:///C:/Users/Wayne/Documents/Arduino
Sketch Include Paths
Core Include Paths
Include Path file:///C:/Program%20Files/Arduino/hardware/arduino/avr/cores/arduino
Include Path file:///C:/Program%20Files/Arduino/hardware/arduino/avr/variants/standard
Searching for libraries ...
Using previous search results: C:\Users\Wayne\AppData\Local\Temp\VMBuilds\Sketch1\uno\Release\Sketch1.cpp
Using previous search results: C:\Users\Wayne\AppData\Local\Temp\VMBuilds\Sketch1\uno\Release\Sketch1.cpp
Using previous search results: C:\Users\Wayne\AppData\Local\Temp\VMBuilds\Sketch1\uno\Release\Sketch1.cpp
Using previous search results: C:\Program Files\Arduino\hardware\arduino\avr\libraries\Wire\src\Wire.cpp
Using previous search results: C:\Program Files\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c
Using previous search results: C:\Users\Wayne\Documents\Arduino\libraries\NewliquidCrystal\FastIO.cpp
Using previous search results: C:\Users\Wayne\Documents\Arduino\libraries\NewliquidCrystal\I2CIO.cpp
Using previous search results: C:\Users\Wayne\Documents\Arduino\libraries\NewliquidCrystal\LCD.cpp
Using previous search results: C:\Users\Wayne\Documents\Arduino\libraries\NewliquidCrystal\LiquidCrystal.cpp
Using previous search results: p
Using previous search results: Vac.cpp
Using previous search results: pp
Using previous search results: 
Using previous search results: pp
Using previous search results: pp
Using previous search results: pp
Using previous search results: C:\Users\Wayne\Documents\Arduino\libraries\NewliquidCrystal\SI2CIO.cpp
 
Building variant ...
 
  Using previously compiled variant
 
Building core ...
 
Building libraries ...

Using library NewliquidCrystal version 0.0.0 in folder file:///C:/Users/Wayne/Documents/Arduino/libraries/NewliquidCrystal
  Using previously compiled file: FastIO.cpp.o
  Using previously compiled file: I2CIO.cpp.o
  Using previously compiled file: LCD.cpp.o
  Using previously compiled file: LiquidCrystal.cpp.o
  Using previously compiled file: LiquidCrystal_I2C.cpp.o
  Using previously compiled file: LiquidCrystal_I2C_ByVac.cpp.o
  Using previously compiled file: LiquidCrystal_SI2C.cpp.o
  Using previously compiled file: LiquidCrystal_SR.cpp.o
  Using previously compiled file: LiquidCrystal_SR1W.cpp.o
  Using previously compiled file: LiquidCrystal_SR2W.cpp.o
  Using previously compiled file: LiquidCrystal_SR3W.cpp.o
  Using previously compiled file: SI2CIO.cpp.o

Using library Wire version 1.0 in folder file:///C:/Program%20Files/Arduino/hardware/arduino/avr/libraries/Wire
  Using previously compiled file: C:\Users\Wayne\AppData\Local\Temp\VMBuilds\Sketch1\uno\Release\Wire\Wire.cpp.o
  Using previously compiled file: c.o
 
Building project code ...
  Using previously compiled file: C:\Users\Wayne\AppData\Local\Temp\VMBuilds\Sketch1\uno\Release\Sketch1.cpp.o
 
Linking it all together ...
"C:\Program Files\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o  "C:\Users\Wayne\AppData\Local\Temp\VMBuilds\Sketch1\uno\Release\Sketch1.cpp.o"  .c.o" \FastIO.cpp.o" \I2CIO.cpp.o" \LCD.cpp.o" \LiquidCrystal.cpp.o" \LiquidCrystal_I2C.cpp.o" \LiquidCrystal_I2C_ByVac.cpp.o" \LiquidCrystal_SI2C.cpp.o" \LiquidCrystal_SR.cpp.o" \LiquidCrystal_SR1W.cpp.o" \LiquidCrystal_SR2W.cpp.o" \LiquidCrystal_SR3W.cpp.o" \SI2CIO.cpp.o" "C:\Users\Wayne\AppData\Local\Temp\VMBuilds\Sketch1\uno\Release/core.a" "-LC:\Users\Wayne\AppData\Local\Temp\VMBuilds\Sketch1\uno\Release" -lm
## recipe.objcopy.eep.pattern
"C:\Program Files\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   
## recipe.objcopy.hex.pattern
"C:\Program Files\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom   

Program Sketch1 size: 3,774 bytes (used 12% of a 32,256 byte maximum) (5.04 secs)
Minimum Memory Usage: 314 bytes (15% of a 2048 byte maximum)
 
More to come I'll post again.
  
Back to top
 
IP Logged
 
OldTimer
Newbies
*
Offline


Posts: 9
Joined: Jun 23rd, 2017
Re: Visual micro not uploading
Reply #3 - Jun 23rd, 2017 at 2:12pm
Print Post  

Upload Output:

Compiling 'Sketch1' for 'Arduino/Genuino Uno'
Program size: 3,774 bytes (used 12% of a 32,256 byte maximum) (0.57 secs)
Minimum Memory Usage: 314 bytes (15% of a 2048 byte maximum)
 
Uploading 'Sketch1' to 'Arduino/Genuino Uno' using 'COM4'
Uploader started for board Arduino/Genuino Uno
Upload method will be: bootloader
Uploading via Bootloader 
C:\Program Files\Arduino\hardware\tools\avr\bin\avrdude -V "-CC:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega328p -carduino -PCOM4 -b115200 -D 1.ino.hex:i"
avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch
         System wide configuration file is "C:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf"
         Using Port                    : COM4
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
         Programmer Type : Arduino
         Description     : Arduino
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
         Hardware Version: 3
         Firmware Version: 4.4598883
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
         Vtarget         : 420030.5 V
         Varef           : 197546220.8 V
         Oscillator      : 1.608 Hz
         SCK period      : 7290737.9 us
avrdude: stk500_recv(): programmer is not responding
Upload timed out waiting for a response

The uploader process failed
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.
avrdude: stk500_recv(): programmer is not responding
avrdude done.  Thank you.

Hope this what you need.

Thanks for the Support
Wayne
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro not uploading
Reply #4 - Jun 23rd, 2017 at 5:12pm
Print Post  
No probs. Thanks for the info

Please open the arduino, enable file>preferences>verbose upload. Then upload and post the output.

Thanks
  
Back to top
IP Logged
 
OldTimer
Newbies
*
Offline


Posts: 9
Joined: Jun 23rd, 2017
Re: Visual micro not uploading
Reply #5 - Jun 23rd, 2017 at 7:33pm
Print Post  
Arduino 1.8

Upload:

Archiving built core (caching) in: _5638c217b04eda8279099c4937887265.a
Sketch uses 3774 bytes (11%) of program storage space. Maximum is 32256 bytes.
Global variables use 314 bytes (15%) of dynamic memory, leaving 1734 bytes for local variables. Maximum is 2048 bytes.
C:\Program Files\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b115200 -D no.hex:i 

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

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

         Using Port                    : COM4
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 4.4
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "C:\Users\Wayne\AppData\Local\Temp\arduino_build_857046/sketch_jun21a.ino.hex"
avrdude: writing flash (3774 bytes):

Writing | ################################################## | 100% 0.86s

avrdude: 3774 bytes of flash written
avrdude: verifying flash memory against C:\Users\Wayne\AppData\Local\Temp\arduino_build_857046/sketch_jun21a.ino.hex:
avrdude: load data flash data from input file C:\Users\Wayne\AppData\Local\Temp\arduino_build_857046/sketch_jun21a.ino.hex:
avrdude: input file C:\Users\Wayne\AppData\Local\Temp\arduino_build_857046/sketch_jun21a.ino.hex contains 3774 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.83s

avrdude: verifying ...
avrdude: 3774 bytes of flash verified

avrdude done.  Thank you.

Thanks 
Wayne
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro not uploading
Reply #6 - Jun 23rd, 2017 at 7:44pm
Print Post  
Thanks last two things to determine the cause ...

1) What is the driver name and date for COm4 in control panel > device manager.
2) If you put the following in a .bat file and run it from cmd.exe does the upload work

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



3) If 2) fails does this work in the .bat

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



4) If 3) fails does this work in the .bat

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


« Last Edit: Jun 23rd, 2017 at 7:44pm by Tim@Visual Micro »  
Back to top
IP Logged
 
OldTimer
Newbies
*
Offline


Posts: 9
Joined: Jun 23rd, 2017
Re: Visual micro not uploading
Reply #7 - Jun 24th, 2017 at 8:38am
Print Post  
Per Request:

USB Serial Device (COM4)

Driver
{
Microsoft
Date 6/21/2006
Version 10.0.15063.0
}

As for the Batch file all 3 commands work.

Thanks again.
Wayne

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro not uploading
Reply #8 - Jun 24th, 2017 at 11:51am
Print Post  
Thanks.

Please right click the usb driver and choose update driver software > browser my computer for driver software

At the prompt enter the following location to search "C:\Program Files\Arduino\drivers"

Make sure the "Include subfolders" checkbox is checked and then click Finish. It should install the genuine arduino usb driver to see if that resolves the issue.

Thanks
  
Back to top
IP Logged
 
OldTimer
Newbies
*
Offline


Posts: 9
Joined: Jun 23rd, 2017
Re: Visual micro not uploading
Reply #9 - Jun 24th, 2017 at 1:09pm
Print Post  
I have tried "C:\Program Files\Arduino\drivers" and
genuine arduino usb driver did not install, instead it installed default MS driver.

I looked for "genuine arduino usb driver" in the folder and could not find

Thoughts ?
Wayne
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro not uploading
Reply #10 - Jun 24th, 2017 at 2:10pm
Print Post  
You just need to right click the current driver/com port and click Uninstall. Check the checkbox or click OK when it asks "Delete existing drivers". 

Unplug the usb cable then reconnect. Then you can install the correct arduino drivers.






« Last Edit: Jun 24th, 2017 at 2:12pm by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
OldTimer
Newbies
*
Offline


Posts: 9
Joined: Jun 23rd, 2017
Re: Visual micro not uploading
Reply #11 - Jun 24th, 2017 at 4:00pm
Print Post  
OOPS! Windows did not like that game plan, 
BLUE SCREEN of DEATH.

That's Ok I was Thinking uninstall and cleanup hidden device's maybe registry too?

Question is should I do this or not.

if so is there any particular sequence for install. I mean for instance comport, Arduino or Visual Micro.

I appreciate your suggestion.

PS.
I'll be back in touch in a couple of day's, obligations on top of this.
Thank for the help
Wayne




  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro not uploading
Reply #12 - Jun 24th, 2017 at 4:14pm
Print Post  
Yes sounds like a cleanup will help. You should be able to install the arduino driver without issue.

The only real difference is that visual micro uses c# to test the port exists and is clear prior to upload but arduino uses java.

In your tests the actual upload seems to work okay so it's something to do with how the usb driver handles the port check.

I did't ask which version of arduino ide you are using?
  
Back to top
IP Logged
 
OldTimer
Newbies
*
Offline


Posts: 9
Joined: Jun 23rd, 2017
Re: Visual micro not uploading
Reply #13 - Jul 6th, 2017 at 4:27pm
Print Post  
Sorry for the delay.

You asked for 
  Arduino IDE (Version 1.8)

To ReCap:

  Arduino IDE, Compiles/Uploads No problems.

  V-Micro IDE, Compiles, Will not Upload.
    Error: (avrdude: stk500_recv(): programmer is not responding)
  
  
Things I have done:

  Batch commands you supplied (All 3) upload No problems.

  Reinstalled Ardiono/V-Micro (Latest versions)

  Installed (Arduino LLC Driver) for Com4.

  Results After reinstall appear to be the same as before. V-micro did upload once 
after sereral attemps (have verbose output), and upload was very slow 40.88s compared 
to 1.00s/1.50s for the other uploads. I did try to upload again before doing anything 
else and upload failed with same Error as above.

Note:
  Upon upload UNO board resets, TX/DX led's flash 3 times quickly, then long pause and 
  DX led blinks slowly.
  
Thanks
Wayne
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro not uploading
Reply #14 - Jul 6th, 2017 at 6:12pm
Print Post  
Do you have a link to where the board can be purchased

Thanks
  
Back to top
IP Logged
 
OldTimer
Newbies
*
Offline


Posts: 9
Joined: Jun 23rd, 2017
Re: Visual micro not uploading
Reply #15 - Jul 7th, 2017 at 10:51am
Print Post  
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro not uploading
Reply #16 - Jul 7th, 2017 at 1:45pm
Print Post  
Oh okay that is a clone of the standard Uno. For the sake of a few dollars it might have been better to get the genuine one.

I will try to replicate the issue you are having.

http://uk.farnell.com/arduino-org/a000066/arduino-uno-evaluation-board/dp/207538...


  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint