Skip to content

Upload not working #164

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
mo-krauti opened this issue Mar 7, 2019 · 12 comments
Closed

Upload not working #164

mo-krauti opened this issue Mar 7, 2019 · 12 comments
Assignees
Labels
conclusion: invalid Issue/PR not valid type: imperfection Perceived defect in any part of project

Comments

@mo-krauti
Copy link

mo-krauti commented Mar 7, 2019

I am trying to upload the test sketch from the readme to an arduino leonardo. I have compiled it successfully, but when I try to upload I get the following:

Connecting to programmer: Found programmer: Id = "CATERIN"; type = S Software Version = 1.0; No Hardware Version given. Programmer supports buffered memory access with buffersize=128 bytes. Programmer supports the following devices: Device code: 0x44

I am running the latest version which I have just compiled today. The program previously uploaded is no longer running.

@per1234
Copy link
Contributor

per1234 commented Mar 8, 2019

Is that the full output from the upload command?

@mo-krauti
Copy link
Author

Yes

@per1234 per1234 added the bug label May 24, 2019
@karelfonteyn
Copy link

Any update/workaround about how to upload a sketch to an Arduino Leonardo using Arduino CLI? I still get the same error using the latest nightly build.

@Lisiadito
Copy link

I get this message with the Arduino Micro

@wtgee
Copy link

wtgee commented Jan 10, 2020

We are getting this same issue although that's not the full message in our case:

Connecting to programmer: .                                                                                                                                                          │····················································································
Found programmer: Id = "CATERIN"; type = S                                                                                                                                           │····················································································
    Software Version = 1.0; No Hardware Version given.                                                                                                                               │····················································································
Programmer supports auto addr increment.                                                                                                                                             │····················································································
Programmer supports buffered memory access with buffersize=128 bytes.                                                                                                                │····················································································
                                                                                                                                                                                     │····················································································
Programmer supports the following devices:                                                                                                                                           │····················································································
    Device code: 0x44                                                                                                                                                                │····················································································
                                                                                                                                                                                     │····················································································
avrdude: Expected signature for ATmega32U4 is 1E 95 87                                                                                                                               │····················································································
         Double check chip, or use -F to override this check.                                                                                                                        │····················································································
Error during Upload: uploading error: exit status 1  

We have successfully uploaded via the Arduino IDE on this same device with same cable/etc setup.

We've also been having this issue for a long time but are only able now to address it.

Any updates or anything I can try? We are trying to get this working for a network of remote devices and can't rely on the IDE upload.

@cmaglie
Copy link
Member

cmaglie commented Jan 10, 2020

May you run the same command adding: --log-level debug -v and copy the output here?

In case you are on MacOSX Catalina you must install all the system updates available.

@wtgee
Copy link

wtgee commented Jan 10, 2020


avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "~/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
         User configuration file is "~/.avrduderc"
avrdude: warning at ~/.avrduderc:2: programmer arduino overwrites previous definition ~/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf:361.

         Using Port                    : /dev/ttyACM0
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega32U4
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         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  9000  9000 0x00 0x00
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 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 : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
    Device code: 0x44

avrdude: devcode selected: 0x44
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.16s

avrdude: Device signature = 0x3f0d0d
avrdude: Expected signature for ATmega32U4 is 1E 95 87
         Double check chip, or use -F to override this check.

avrdude done.  Thank you.

Error during Upload: uploading error: exit status 1

I was trying to change the baudrate with the .avrduderc (which I think I am doing wrong), so it just contains:

$ cat ~/.avrduderc 
programmer
  id    = "arduino";
  desc  = "Arduino";
  type  = "arduino";
  connection_type = serial;
  baudrate = 2400;
;

System

$ uname -a
Linux xxx 5.0.0-37-generic #40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

@thekunalsaini
Copy link

Try to upload full output @mo-pyy

per1234 pushed a commit that referenced this issue Nov 16, 2020
Debug macros replace direct calls to Arduino_DebugUtils
@per1234 per1234 reopened this Mar 30, 2021
per1234 added a commit that referenced this issue Aug 9, 2021
Disable LM-specific checks when in --library-manager=false mode
@fstasi fstasi removed the type: bug label Sep 16, 2021
@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
@yan007931
Copy link

yan007931 commented Oct 22, 2022

I have the same issue .
Please find below my detailed logs
Version: 2.0.0
Date: 2022-09-14T07:06:37.759Z
CLI Version: 0.27.1 [a900cfb]

Copyright © 2022 Arduino SA

Using board 'leonardo' from platform in folder: C:\Users\nylsc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5
Using core 'arduino' from platform in folder: C:\Users\nylsc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5
Detecting libraries used...
"C:\\Users\\nylsc\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" "-IC:\\Users\\nylsc\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\nylsc\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\leonardo" "C:\\Users\\nylsc\\AppData\\Local\\Temp\\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC\\sketch\\sketch_oct22a.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\nylsc\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" "-IC:\\Users\\nylsc\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\nylsc\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\leonardo" "C:\\Users\\nylsc\\AppData\\Local\\Temp\\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC\\sketch\\sketch_oct22a.ino.cpp" -o "C:\\Users\\nylsc\\AppData\\Local\\Temp\\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\nylsc\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\nylsc\\AppData\\Local\\Temp\\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\nylsc\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" "-IC:\\Users\\nylsc\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\nylsc\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\leonardo" "C:\\Users\\nylsc\\AppData\\Local\\Temp\\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC\\sketch\\sketch_oct22a.ino.cpp" -o "C:\\Users\\nylsc\\AppData\\Local\\Temp\\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC\\sketch\\sketch_oct22a.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\nylsc\AppData\Local\Temp\arduino-core-cache\core_arduino_avr_leonardo_8413e57c7eeb22ff6a1d72a726bd34be.a
Linking everything together...
"C:\\Users\\nylsc\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega32u4 -o "C:\\Users\\nylsc\\AppData\\Local\\Temp\\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC/sketch_oct22a.ino.elf" "C:\\Users\\nylsc\\AppData\\Local\\Temp\\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC\\sketch\\sketch_oct22a.ino.cpp.o" "C:\\Users\\nylsc\\AppData\\Local\\Temp\\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC/..\\arduino-core-cache\\core_arduino_avr_leonardo_8413e57c7eeb22ff6a1d72a726bd34be.a" "-LC:\\Users\\nylsc\\AppData\\Local\\Temp\\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC" -lm
"C:\\Users\\nylsc\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\nylsc\\AppData\\Local\\Temp\\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC/sketch_oct22a.ino.elf" "C:\\Users\\nylsc\\AppData\\Local\\Temp\\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC/sketch_oct22a.ino.eep"
"C:\\Users\\nylsc\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\nylsc\\AppData\\Local\\Temp\\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC/sketch_oct22a.ino.elf" "C:\\Users\\nylsc\\AppData\\Local\\Temp\\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC/sketch_oct22a.ino.hex"

"C:\\Users\\nylsc\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\nylsc\\AppData\\Local\\Temp\\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC/sketch_oct22a.ino.elf"
Sketch uses 3462 bytes (12%) of program storage space. Maximum is 28672 bytes.
Global variables use 149 bytes (5%) of dynamic memory, leaving 2411 bytes for local variables. Maximum is 2560 bytes.
Performing 1200-bps touch reset on serial port COM5
Waiting for upload port...
Upload port found on COM6

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\nylsc\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
"C:\Users\nylsc\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\nylsc\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v  -patmega32u4 -cavr109 "-PCOM6" -b57600 -D "-Uflash:w:C:\Users\nylsc\AppData\Local\Temp\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC/sketch_oct22a.ino.hex:i"

         Using Port                    : COM6
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega32U4
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         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  9000  9000 0x00 0x00
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 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 : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
    Device code: 0x44

avrdude: devcode selected: 0x44
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9587 (probably m32u4)
avrdude: reading input file "C:\Users\nylsc\AppData\Local\Temp\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC/sketch_oct22a.ino.hex"
avrdude: writing flash (3462 bytes):

Writing | ################################################## | 100% 0.28s

avrdude: 3462 bytes of flash written
avrdude: verifying flash memory against C:\Users\nylsc\AppData\Local\Temp\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC/sketch_oct22a.ino.hex:
avrdude: load data flash data from input file C:\Users\nylsc\AppData\Local\Temp\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC/sketch_oct22a.ino.hex:
avrdude: input file C:\Users\nylsc\AppData\Local\Temp\arduino-sketch-302682C1C4A46AAFB86BDE427C7664EC/sketch_oct22a.ino.hex contains 3462 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.04s

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

avrdude done.  Thank you.

@per1234
Copy link
Contributor

per1234 commented Oct 23, 2022

Hi @mo-pyy and @wtgee. You have posted the output from a successful upload so all is well. Congratulations!

If you have any other questions, you are welcome to post on the Arduino forum. We'll be happy to help you out over there:

https://forum.arduino.cc/

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 23, 2022
@per1234 per1234 self-assigned this Oct 23, 2022
@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Oct 23, 2022
@feivur
Copy link

feivur commented Nov 20, 2022

get this message with the Arduino Micro

@ArlequinTecno
Copy link

Estoy tratando de cargar el boceto de prueba del archivo Léame a un arduino leonardo. Lo he compilado con éxito, pero cuando intento cargarlo, obtengo lo siguiente: Connecting to programmer: Found programmer: Id = "CATERIN"; type = S Software Version = 1.0; No Hardware Version given. Programmer supports buffered memory access with buffersize=128 bytes. Programmer supports the following devices: Device code: 0x44Estoy ejecutando la última versión que acabo de compilar hoy. El programa cargado anteriormente ya no se está ejecutando.

Tengo el mismo problema (Con una placa Leonardo) ¿Donde puedo leer algo que me sirva para solucionarlo?

@arduino arduino locked as resolved and limited conversation to collaborators Apr 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
conclusion: invalid Issue/PR not valid type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests