Skip to content

When I use Arduino IDE 1.8.8, I always fail to upload programs #8305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chen462591558 opened this issue Dec 15, 2018 · 7 comments
Closed

When I use Arduino IDE 1.8.8, I always fail to upload programs #8305

chen462591558 opened this issue Dec 15, 2018 · 7 comments
Labels
Component: Uploading Uploading programs to an Arduino board Type: Duplicate Another item already exists for this topic

Comments

@chen462591558
Copy link

I have a problem. My Windows system is 64-bit win10. When I use Arduino IDE 1.8.8, I always fail to upload programs, but I have no problem using Arduino IDE 1.6.5 upload programs. Is this the new IDE's support for 64-bit win10 not good? I hope the developers of Arduino IDE can fix this problem in time, or you can tell me how to solve this problem skillfully. Thank you. My email address is [email protected].

@per1234
Copy link
Collaborator

per1234 commented Dec 15, 2018

Please do this:

  1. File > Preferences > Show verbose output during: > compilation (uncheck) > upload (check) > OK
  2. Sketch > Upload
  3. After the upload fails you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
  4. Paste the error messages in a reply here using code fencing.

@per1234 per1234 added Waiting for feedback More information must be provided before we can proceed Component: Uploading Uploading programs to an Arduino board labels Dec 15, 2018
@bjoc8com
Copy link

I have the same problem, here is the error message:

Arduino: 1.8.8 (Windows 10), Alaplap:"Arduino/Genuino Uno"

G:\arduino-1.8.8\arduino-builder -dump-prefs -logger=machine -hardware G:\arduino-1.8.8\hardware -tools G:\arduino-1.8.8\tools-builder -tools G:\arduino-1.8.8\hardware\tools\avr -built-in-libraries G:\arduino-1.8.8\libraries -libraries c:\Users\root\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10808 -build-path C:\Users\root\AppData\Local\Temp\arduino_build_52687 -warnings=all -build-cache C:\Users\root\AppData\Local\Temp\arduino_cache_981728 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=G:\arduino-1.8.8\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=G:\arduino-1.8.8\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=G:\arduino-1.8.8\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=G:\arduino-1.8.8\hardware\tools\avr -prefs=runtime.tools.avrdude.path=G:\arduino-1.8.8\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=G:\arduino-1.8.8\hardware\tools\avr -verbose G:\arduino-1.8.8\examples\01.Basics\Blink\Blink.ino
G:\arduino-1.8.8\arduino-builder -compile -logger=machine -hardware G:\arduino-1.8.8\hardware -tools G:\arduino-1.8.8\tools-builder -tools G:\arduino-1.8.8\hardware\tools\avr -built-in-libraries G:\arduino-1.8.8\libraries -libraries c:\Users\root\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10808 -build-path C:\Users\root\AppData\Local\Temp\arduino_build_52687 -warnings=all -build-cache C:\Users\root\AppData\Local\Temp\arduino_cache_981728 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=G:\arduino-1.8.8\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=G:\arduino-1.8.8\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=G:\arduino-1.8.8\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=G:\arduino-1.8.8\hardware\tools\avr -prefs=runtime.tools.avrdude.path=G:\arduino-1.8.8\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=G:\arduino-1.8.8\hardware\tools\avr -verbose G:\arduino-1.8.8\examples\01.Basics\Blink\Blink.ino
Using board 'uno' from platform in folder: G:\arduino-1.8.8\hardware\arduino\avr
Using core 'arduino' from platform in folder: G:\arduino-1.8.8\hardware\arduino\avr
Detecting libraries used...
"G:\\arduino-1.8.8\\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=10808 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IG:\\arduino-1.8.8\\hardware\\arduino\\avr\\cores\\arduino" "-IG:\\arduino-1.8.8\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\root\\AppData\\Local\\Temp\\arduino_build_52687\\sketch\\Blink.ino.cpp" -o nul
Generating function prototypes...
"G:\\arduino-1.8.8\\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=10808 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IG:\\arduino-1.8.8\\hardware\\arduino\\avr\\cores\\arduino" "-IG:\\arduino-1.8.8\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\root\\AppData\\Local\\Temp\\arduino_build_52687\\sketch\\Blink.ino.cpp" -o "C:\\Users\\root\\AppData\\Local\\Temp\\arduino_build_52687\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"G:\\arduino-1.8.8\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\root\\AppData\\Local\\Temp\\arduino_build_52687\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Vázlat fordítása...
"G:\\arduino-1.8.8\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10808 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IG:\\arduino-1.8.8\\hardware\\arduino\\avr\\cores\\arduino" "-IG:\\arduino-1.8.8\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\root\\AppData\\Local\\Temp\\arduino_build_52687\\sketch\\Blink.ino.cpp" -o "C:\\Users\\root\\AppData\\Local\\Temp\\arduino_build_52687\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\root\AppData\Local\Temp\arduino_cache_981728\core\core_arduino_avr_uno_2c259e6533ec07134338245f664dd7df.a
Linking everything together...
"G:\\arduino-1.8.8\\hardware\\tools\\avr/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\root\\AppData\\Local\\Temp\\arduino_build_52687/Blink.ino.elf" "C:\\Users\\root\\AppData\\Local\\Temp\\arduino_build_52687\\sketch\\Blink.ino.cpp.o" "C:\\Users\\root\\AppData\\Local\\Temp\\arduino_build_52687/..\\arduino_cache_981728\\core\\core_arduino_avr_uno_2c259e6533ec07134338245f664dd7df.a" "-LC:\\Users\\root\\AppData\\Local\\Temp\\arduino_build_52687" -lm
"G:\\arduino-1.8.8\\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\\root\\AppData\\Local\\Temp\\arduino_build_52687/Blink.ino.elf" "C:\\Users\\root\\AppData\\Local\\Temp\\arduino_build_52687/Blink.ino.eep"
"G:\\arduino-1.8.8\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\root\\AppData\\Local\\Temp\\arduino_build_52687/Blink.ino.elf" "C:\\Users\\root\\AppData\\Local\\Temp\\arduino_build_52687/Blink.ino.hex"
"G:\\arduino-1.8.8\\hardware\\tools\\avr/bin/avr-size" -A "C:\\Users\\root\\AppData\\Local\\Temp\\arduino_build_52687/Blink.ino.elf"
Vázlat használ 930 bájt (2%) -ot a program tárhelyből. A maximum 32256 bájt.
A globális változók 9 bájt (0%)-ot használnak a dinamikus memóriából, 2039 bájtot hagyva a helyi változóknak. A maximum 2048 bájt.
G:\arduino-1.8.8\hardware\tools\avr/bin/avrdude -CG:\arduino-1.8.8\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b19200 -Uflash:w:C:\Users\root\AppData\Local\Temp\arduino_build_52687/Blink.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 "G:\arduino-1.8.8\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM3
         Using Programmer              : arduino
         Overriding Baud Rate          : 19200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x15
         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_getparm(): (a) protocol error, expect=0x14, resp=0x14

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x02

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x10
         Hardware Version: 4744608
         Firmware Version: 0.4611299
         Topcard         : STK502
         Vtarget         : 1.8 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: stk500_initialize(): (b) protocol error, expect=0x10, resp=0x01
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

kiválasztott          this check.
 port nem elérhető vagy az alappanel nincs csatlakoztatva
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x10

avrdude done.  Thank you.

@bjoc8com
Copy link

I use Arduino Uno as "Arduino as ISP" to upload.

@per1234
Copy link
Collaborator

per1234 commented Dec 16, 2018

@bjoc8com you may be encountering #8032. That can be solved in either of two different ways:


Fix A:

Connect a 10 uF capacitor between the GND and RESET pins on the board you're using as the "Arduino as ISP".


Fix B:

Roll back to Arduino AVR Boards 1.6.21:

  1. Tools > Board > Boards Manager
  2. Wait for the downloads to finish.
  3. Click on "Arduino AVR Boards".
  4. Select "1.6.21" from the drop down menu.
  5. Click "Install".
  6. Wait for installation to finish.
  7. Click "Close".
  8. Try uploading again.

@bjoc8com
Copy link

Yes, both versions work. I use version A.
Thanks
Are these solutions temporary or final?

@per1234
Copy link
Collaborator

per1234 commented Dec 17, 2018

@bjoc8com there is some discussion of reverting the change that made it more likely for you to need the capacitor (#8032 (comment)). You can subscribe to #8032 to get notifications of any progress on that.

Even after that, there's no harm in continuing to use the capacitor.

As for fix B, I would recommend only using that as a temporary workaround for people who don't have a capacitor on hand since it's unfortunate to miss out on the improvements made in later releases of Arduino AVR Boards.

@per1234 per1234 added Type: Duplicate Another item already exists for this topic and removed Waiting for feedback More information must be provided before we can proceed labels Feb 12, 2019
@per1234
Copy link
Collaborator

per1234 commented Feb 12, 2019

Closing as duplicate of #8032

@per1234 per1234 closed this as completed Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Uploading Uploading programs to an Arduino board Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

3 participants