Go Down

Topic: Cannot upload to board ... HELP PLEASE!! (Read 294 times) previous topic - next topic

redneck6497

Help!! I am having an issue uploading to my Mega2560 board.  It works fine on my mac (uploaded using parallels running windows 10). 

However, I can't upload it using my Surface Pro.  I have uploaded the same sketch, without issue on the mac.  I have read through all of the troubleshooting and still can't seem to figure it out.  The version of the IDE is the one that you download and install with the windows installer (not the app).  Until I installed with the windows installer, device manager wouldn't show me the correct device.  I assume I have the right drivers now since it looks like it identified the board. 

See Attached Screenshot file(.pdf)
It is using COM6 (selected)
Showing up as the right device in the device manager



I get the following:
ERROR
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 "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : usb
         Using Programmer              : stk500v2
avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104)

avrdude done.  Thank you.

An error occurred while uploading the sketch



THANKS FOR YOUR HELP!!!!!!!

pert

The error indicates you're doing an "Upload Using Programmer", rather than a standard "Upload". Upload Using Programmer is done via Sketch > Upload Using Programmer, holding the Shift key while pressing the Upload button, or Ctrl + Shift + U. Upload is done via Sketch > Upload, pressing the Upload button without the Shift key held, or Ctrl + U. You want to do a standard Upload, not an Upload Using Programmer.

redneck6497

Ah, ok. I thought that would give me the verbose logging.  Instead, I just turned it on.  Here is the output:

Arduino: 1.8.9 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\aabrams\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0010 -ide-version=10809 -build-path C:\Users\aabrams\AppData\Local\Temp\arduino_build_894567 -warnings=none -build-cache C:\Users\aabrams\AppData\Local\Temp\arduino_cache_23908 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose E:\Arduino\BlinkLED\BlinkLED.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\aabrams\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0010 -ide-version=10809 -build-path C:\Users\aabrams\AppData\Local\Temp\arduino_build_894567 -warnings=none -build-cache C:\Users\aabrams\AppData\Local\Temp\arduino_cache_23908 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose E:\Arduino\BlinkLED\BlinkLED.ino
Using board 'uno' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\aabrams\\AppData\\Local\\Temp\\arduino_build_894567\\sketch\\BlinkLED.ino.cpp" -o nul
Generating function prototypes...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\aabrams\\AppData\\Local\\Temp\\arduino_build_894567\\sketch\\BlinkLED.ino.cpp" -o "C:\\Users\\aabrams\\AppData\\Local\\Temp\\arduino_build_894567\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\aabrams\\AppData\\Local\\Temp\\arduino_build_894567\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\aabrams\\AppData\\Local\\Temp\\arduino_build_894567\\sketch\\BlinkLED.ino.cpp" -o "C:\\Users\\aabrams\\AppData\\Local\\Temp\\arduino_build_894567\\sketch\\BlinkLED.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\aabrams\AppData\Local\Temp\arduino_cache_23908\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a
Linking everything together...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\aabrams\\AppData\\Local\\Temp\\arduino_build_894567/BlinkLED.ino.elf" "C:\\Users\\aabrams\\AppData\\Local\\Temp\\arduino_build_894567\\sketch\\BlinkLED.ino.cpp.o" "C:\\Users\\aabrams\\AppData\\Local\\Temp\\arduino_build_894567/..\\arduino_cache_23908\\core\\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\\Users\\aabrams\\AppData\\Local\\Temp\\arduino_build_894567" -lm
"C:\\Program Files (x86)\\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\\aabrams\\AppData\\Local\\Temp\\arduino_build_894567/BlinkLED.ino.elf" "C:\\Users\\aabrams\\AppData\\Local\\Temp\\arduino_build_894567/BlinkLED.ino.eep"
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\aabrams\\AppData\\Local\\Temp\\arduino_build_894567/BlinkLED.ino.elf" "C:\\Users\\aabrams\\AppData\\Local\\Temp\\arduino_build_894567/BlinkLED.ino.hex"
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-size" -A "C:\\Users\\aabrams\\AppData\\Local\\Temp\\arduino_build_894567/BlinkLED.ino.elf"
Sketch uses 1450 bytes (4%) of program storage space. Maximum is 32256 bytes.
Global variables use 15 bytes (0%) of dynamic memory, leaving 2033 bytes for local variables. Maximum is 2048 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM6 -b115200 -D -Uflash:w:C:\Users\aabrams\AppData\Local\Temp\arduino_build_894567/BlinkLED.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 "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM6
         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=0xce
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xce
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xce
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xce
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xce
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xce
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xce
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xce
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xce
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xce

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

redneck6497

I also found this in the device manager when I inspected the port
Device USB\VID_2341&PID_0010\7563031383635121E010 requires further installation.

not sure what to do about that.... prob. related though.

pert

Do this:
  • Start Device Manager.
  • Plug your Mega in to your computer.
  • A new item should now appear in the Device Manager tree. Double click on it.
  • Click the "Update Driver" button.
  • Click "Browse my computer for software".
  • Click the "Browse" button.
  • Select C:\Program Files (x86)\Arduino\drivers
  • Click the "OK" button.
  • Check the box next to "Include subfolders".
  • Click the "Next" button.
  • The Windows driver installation wizard should now install the driver for your Mega.
  • Note the COM port shown for your Mega in the Device Manager tree.
  • (In the Arduino IDE) select the port of your Mega from the Tools > Port menu.
  • Try uploading again.

redneck6497

okay, I tried that, and it said I already had the best drivers installed.

pert

Remove any connections to pins 0 and 1. These pins are used for communication with your computer, including uploads. Connecting anything to these pins can interfere with uploads.

Make sure you have the correct board selected from the Tools > Board menu.

Make sure you have selected the port of your Arduino board from the Tools > Port menu.

Sometimes the port will be labeled with the board name in the menu. Other times it will not. If you don't know which port is your Arduino, you can find it like this:
  • Unplug your Arduino board from the computer.
  • Tools > Port
  • Note the ports, if any, listed in the menu.
  • Close the Tools menu
  • Plug your Arduino board into the computer.
  • Tools > Port - The new port listed in the menu is your Arduino board.

redneck6497

Thanks for the reply.  Please see the screenshot (.pdf) in the first post.  There is only one port, and it is selected.

redneck6497

Okay, I got it working.  I tinkered around with the boards types were available, and got it to work.  I was pretty sure I was using the same one that worked on the Mac, but either way, it was something that everyone said it was. 

Thanks so much for your help!!!

Remove any connections to pins 0 and 1. These pins are used for communication with your computer, including uploads. Connecting anything to these pins can interfere with uploads.

Make sure you have the correct board selected from the Tools > Board menu.

Make sure you have selected the port of your Arduino board from the Tools > Port menu.

Sometimes the port will be labeled with the board name in the menu. Other times it will not. If you don't know which port is your Arduino, you can find it like this:
  • Unplug your Arduino board from the computer.
  • Tools > Port
  • Note the ports, if any, listed in the menu.
  • Close the Tools menu
  • Plug your Arduino board into the computer.
  • Tools > Port - The new port listed in the menu is your Arduino board.


pert

You're welcome. I'm glad to hear it's working now. Enjoy!
Per

Go Up