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 Got a problem when upload : not in sync (Read 7091 times)
franky11
Newbies
*
Offline


Posts: 3
Joined: May 17th, 2016
Got a problem when upload : not in sync
Jul 17th, 2016 at 4:02pm
Print Post  
Uhh... I'm a new user of Visual Micro

When I first upload my sketch and the error occurred:

Quote:
avrdude: usbdev_open(): did not find any USB device "usb"


so I googled it , and I find an older topic has the same problem

the solution is to un-tick "Always use programmer for upload" . I did it ,but another problem comes up:

Quote:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xb5
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xb5
.....


and there is no solution....   I'm sure my board is able on Arduino IDE

can anyone help me Sad   thanks!!
« Last Edit: Jul 17th, 2016 at 4:27pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12190
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Got a problem when upload : programmer is not responding
Reply #1 - Jul 17th, 2016 at 4:14pm
Print Post  
Hi,

Yes for the first error you switched on "Always use programmer for upload" by mistake. 

For the 2nd error we need to see the output prior to what you have posted so we can see what board and port was selected.

I also suggest switching on vmicro>uploader>verbose so we can see the rest of your config. 

Then post the output thanks or email to info[at]visualmicro.com
« Last Edit: Jul 17th, 2016 at 4:14pm by Tim@Visual Micro »  
Back to top
IP Logged
 
franky11
Newbies
*
Offline


Posts: 3
Joined: May 17th, 2016
Re: Got a problem when upload : programmer is not responding
Reply #2 - Jul 17th, 2016 at 4:19pm
Print Post  
thanks for helping , this is the message after tick "Verbose Message"

Quote:
Visual Micro free version. Please help by posting reviews or purchasing http://www.visualmicro.com
Free licences given for popular blogs, posts or reviews of Visual Micro
    To apply email link(s) to mailto://blogs@visualmicro.com. (Your personal details will be kept private)
  Your feedback about which features should be in this free version is of value http://www.visualmicro.com/forums
  This build would have been faster using the paid version - Visual Micro Pro

Compiling 'RFID' for 'Arduino/Genuino Uno'
Build folder: file:///C:/Users/水鬼/AppData/Local/Temp/VMicroBuilds/RFID/uno
Summary: Header=1 Prototypes=3 Imports=0
Additional Defines: 
Architecture Tools: D:\Arduino\hardware\tools\avr/bin/
Sketchbook: file:\\\D:\Arduino\Temp
Sketch Include Paths
Include Path 'D:\Arduino\Temp\RFID'
Core Include Paths
Include Path res\arduino'
Include Path riants\standard'
"D:\Arduino\hardware\tools\avr\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10608 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR cores\arduino" variants\standard" "C:\Users\水鬼\AppData\Local\Temp\VMicroBuilds\RFID\uno\RFID.cpp" -o "nul"
Build Core Paths: es\arduino
"D:\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10608 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR cores\arduino" variants\standard" -I"D:\Arduino\libraries" libraries" -I"D:\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\wzjmgtr3.qzu\Micro Platforms\default\debuggers" -I"D:\Arduino\Temp\libraries" "C:\Users\水鬼\AppData\Local\Temp\VMicroBuilds\RFID\uno\RFID.cpp" -o "C:\Users\水鬼\AppData\Local\Temp\VMicroBuilds\RFID\uno\RFID.cpp.o"
"D:\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\水鬼\AppData\Local\Temp\VMicroBuilds\RFID\uno/RFID.ino.elf" "C:\Users\水鬼\AppData\Local\Temp\VMicroBuilds\RFID\uno\RFID.cpp.o" "C:\Users\水鬼\AppData\Local\Temp\VMicroBuilds\RFID\uno/core.a" "-LC:\Users\水鬼\AppData\Local\Temp\VMicroBuilds\RFID\uno" -lm
"D:\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\Temp\VMicroBuilds\RFID\uno/RFID.ino.elf" "C:\Users\水鬼\AppData\Local\Temp\VMicroBuilds\RFID\uno/RFID.ino.eep"
"D:\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\水鬼\AppData\Local\Temp\VMicroBuilds\RFID\uno/RFID.ino.elf" "C:\Users\水鬼\AppData\Local\Temp\VMicroBuilds\RFID\uno/RFID.ino.hex"
Program size: 1,066 bytes (used 3% of a 32,256 byte maximum) (0.53 secs)
Minimum Memory Usage: 9 bytes (0% of a 2048 byte maximum)
 
Uploading 'RFID' to 'Arduino/Genuino Uno' using 'COM3'
Uploader started for board Arduino/Genuino Uno
Upload method will be: bootloader
Uploading via Bootloader 
D:\Arduino\hardware\tools\avr\bin\avrdude "-CD:\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega328p -carduino -PCOM3 -b115200 -D :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 "D:\Arduino\hardware\tools\avr/etc/avrdude.conf"
         Using Port                    : COM3
         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=0x92
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x92
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x92
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x92
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x92
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x92
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x92
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x92
Upload timed out waiting for a response

Upload failed
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x92
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x92
avrdude done.  Thank you.


and this is the board and com I  select

« Last Edit: Jul 17th, 2016 at 4:28pm by franky11 »  

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


Posts: 12190
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Got a problem when upload - Not in sync
Reply #3 - Jul 17th, 2016 at 4:27pm
Print Post  
Thanks for the info.

The error normally means the wrong board is selected or a usb issue. Try unplugging and reconnecting, maybe the attempt to use a programmer has upset the board temporarily.

You can see in the verbose output that visual micro does not perform the upload. Instead it uses the same tool the arduino ide uses which is called avrdude.exe

Here is the upload command from your output. You can put the command in a .bat text file and run it yourself and should see the same problem.

Code
Select All
D:\Arduino\hardware\tools\avr\bin\avrdude "-CD:\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega328p -carduino -PCOM3 -b115200 -D :i" 



« Last Edit: Jul 17th, 2016 at 4:29pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12190
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Got a problem when upload : not in sync
Reply #4 - Jul 17th, 2016 at 4:30pm
Print Post  
and also switch on "file>preferences.upload verbose" in the arduino ide, then upload and confirm the upload command
  
Back to top
IP Logged
 
franky11
Newbies
*
Offline


Posts: 3
Joined: May 17th, 2016
Re: Got a problem when upload : not in sync
Reply #5 - Jul 17th, 2016 at 4:40pm
Print Post  
OH!!!! The problem has been solved!!! Cheesy

just reconnecting the board !! How stupid i am!!

and I also switch on "upload verbose".

thanks a lot !! And sorry for bothering you becouse of this stupid question Roll Eyes
« Last Edit: Jul 17th, 2016 at 4:40pm by franky11 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12190
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Got a problem when upload : not in sync
Reply #6 - Jul 17th, 2016 at 4:44pm
Print Post  
No problem. I like the easy the ones  Smiley
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint