A-Star 32U4 Mini SV avrdude: Expected signature for ATmega32U4 is 1E 95 87

Error during downloading with Arduino IDE 1.8.8 on Ubuntu 18.04 64 bits.
“avrdude: Expected signature for ATmega32U4 is 1E 95 87”

Board is installed and available, port is also available.

If Arduino IDE 1.6.6 running on Windows 7 is used, everything is fine.

What could be the source and the fix for this issue?

Hello.

I moved your post to our A-Star and Orangutan subforum, which seemed more appropriate.

The current version of the Arduino IDE is 1.8.7, which is probably what you meant. Are you programming your A-Star 32U4 via USB or ISP? If you are using a USB cable to upload your sketch to the A-Star, can you use that same cable on your Windows machine to see if you get the same problem? If you are trying to program the A-Star through its ISP headers, which AVR programmer are you using and can you post a picture showing how the programmer is connected to your A-Star? Also, can you enable verbose output in your Arduino IDE on your Ubuntu machine (if it is not already), try programming the A-Star again, and post a copy of the entire output? (You can enable verbose output by selecting File->Preferences in the IDE, and then checking the “compilation” and “upload” boxes next to “Show verbose output during:”.)

- Amanda

Hello,

  1. The version is 1.8.8 Hourly Build 2018/11/13 07:25

  2. Using USB for programming

  3. Using the same cable for the Windows and the Linux machine

  4. Entire output

Arduino:1.8.8 Hourly Build 2018/11/13 07:25 (Linux), Carte : "Pololu A-Star 32U4"

/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/arduino-builder -dump-prefs -logger=machine -hardware /home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware -hardware /home/michel/.arduino15/packages -tools /home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/tools-builder -tools /home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr -tools /home/michel/.arduino15/packages -built-in-libraries /home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/libraries -libraries /home/michel/Arduino/libraries -fqbn=pololu-a-star:avr:a-star32U4 -vid-pid=0X1FFB_0X2300 -ide-version=10808 -build-path /tmp/arduino_build_636936 -warnings=none -build-cache /tmp/arduino_cache_542840 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr -verbose /home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/examples/01.Basics/Blink/Blink.ino
/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/arduino-builder -compile -logger=machine -hardware /home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware -hardware /home/michel/.arduino15/packages -tools /home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/tools-builder -tools /home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr -tools /home/michel/.arduino15/packages -built-in-libraries /home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/libraries -libraries /home/michel/Arduino/libraries -fqbn=pololu-a-star:avr:a-star32U4 -vid-pid=0X1FFB_0X2300 -ide-version=10808 -build-path /tmp/arduino_build_636936 -warnings=none -build-cache /tmp/arduino_cache_542840 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr -verbose /home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/examples/01.Basics/Blink/Blink.ino
Using board 'a-star32U4' from platform in folder: /home/michel/.arduino15/packages/pololu-a-star/hardware/avr/4.0.1
Using core 'arduino' from platform in folder: /home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/arduino/avr
Detecting libraries used...
/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10808 -DARDUINO_AVR_A_STAR_32U4 -DARDUINO_ARCH_AVR -DUSB_VID=0x1ffb -DUSB_PID=0x2300 "-DUSB_MANUFACTURER=\"Pololu Corporation\"" "-DUSB_PRODUCT=\"Pololu A-Star 32U4\"" -I/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/arduino/avr/cores/arduino -I/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/arduino/avr/variants/leonardo /tmp/arduino_build_636936/sketch/Blink.ino.cpp -o /dev/null
Generating function prototypes...
/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10808 -DARDUINO_AVR_A_STAR_32U4 -DARDUINO_ARCH_AVR -DUSB_VID=0x1ffb -DUSB_PID=0x2300 "-DUSB_MANUFACTURER=\"Pololu Corporation\"" "-DUSB_PRODUCT=\"Pololu A-Star 32U4\"" -I/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/arduino/avr/cores/arduino -I/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/arduino/avr/variants/leonardo /tmp/arduino_build_636936/sketch/Blink.ino.cpp -o /tmp/arduino_build_636936/preproc/ctags_target_for_gcc_minus_e.cpp
/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_636936/preproc/ctags_target_for_gcc_minus_e.cpp
Compilation du croquis...
/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10808 -DARDUINO_AVR_A_STAR_32U4 -DARDUINO_ARCH_AVR -DUSB_VID=0x1ffb -DUSB_PID=0x2300 "-DUSB_MANUFACTURER=\"Pololu Corporation\"" "-DUSB_PRODUCT=\"Pololu A-Star 32U4\"" -I/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/arduino/avr/cores/arduino -I/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/arduino/avr/variants/leonardo /tmp/arduino_build_636936/sketch/Blink.ino.cpp -o /tmp/arduino_build_636936/sketch/Blink.ino.cpp.o
Compiling libraries...
Compiling core...
Using precompiled core: /tmp/arduino_cache_542840/core/core_pololu-a-star_avr_a-star32U4_b27a3f834701eaacf1b7cd6a710164aa.a
Linking everything together...
/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr/bin/avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega32u4 -o /tmp/arduino_build_636936/Blink.ino.elf /tmp/arduino_build_636936/sketch/Blink.ino.cpp.o /tmp/arduino_build_636936/../arduino_cache_542840/core/core_pololu-a-star_avr_a-star32U4_b27a3f834701eaacf1b7cd6a710164aa.a -L/tmp/arduino_build_636936 -lm
/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/arduino_build_636936/Blink.ino.elf /tmp/arduino_build_636936/Blink.ino.eep
/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /tmp/arduino_build_636936/Blink.ino.elf /tmp/arduino_build_636936/Blink.ino.hex
/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr/bin/avr-size -A /tmp/arduino_build_636936/Blink.ino.elf
Le croquis utilise 4140 octets (14%) de l'espace de stockage de programmes. Le maximum est de 28672 octets.
Les variables globales utilisent 149 octets (5%) de mémoire dynamique, ce qui laisse 2411 octets pour les variables locales. Le maximum est de 2560 octets.
Redémarrage forcé en cours en 1200bps ouvert/fermé sur le port /dev/ttyACM0
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyS0, } => {}
PORTS {/dev/ttyS0, } / {/dev/ttyS0, } => {}
PORTS {/dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {/dev/ttyACM0, }
Found upload port: /dev/ttyACM0
/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr/bin/avrdude -C/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/ttyACM0 -b57600 -D -Uflash:w:/tmp/arduino_build_636936/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 "/home/michel/Downloads/arduino-nightly-linux64/arduino-nightly/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/michel/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         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.27s

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.

Mauvais microcontrôleur trouvé. Avez-vous sélectionné la bonne carte dans
le menu Outils > Type de carte ?

-Michel

It looks like you are able to get your A-Star into bootloader mode but cannot read the device signature. Since you are able to program the A-Star from your Windows computer using an older version of the Arduino IDE, it seems the Arduino IDE version you are using on your Linux machine is probably causing the issue. Do you get the same behavior if you try programming the A-Star using Arduino 1.8.7 in Linux? Is there any particular reason why you are using an hourly build version of the IDE to program the A-Star?

- Amanda

Q - Do you get the same behaviour if you try programming the A-Star using Arduino 1.8.7 in Linux?
R - Yes, I get the same behaviour. Even when using the same previous 1.6.13 version of the Windows machine, I’m getting the same behaviour.

Q - Is there any particular reason why you are using an hourly build version of the IDE to program the A-Star?
R - I download the hourly build version to get the most updated features and bugfixes.

- Michel

You mentioned in your first post that you were able to program the A-Star using Arduino 1.6.6 on your Windows computer. Are you still able to program the A-Star using that version (1.6.6)? Are there any other components or devices connected to the A-Star when you try programming it other than the USB cable? Where did you get your A-Star board? Is it possible that the A-Star’s bootloader might have been modified before it came into your possession?

- Amanda

Q1: Are you still able to program the A-Star using that version (1.6.6)?
A1: This a typo error, in fact the Windows version is 1.6.13 and yes I’m able to program the A-Star with this version.

Q2: Are there any other components or devices connected to the A-Star when you try programming it other than the USB cable?
A2: No other devices connected to the A-Star.

Q3: Where did you get your A-Star board?
A3: I bought the A-Star from Pololu.

Q4: Is it possible that the A-Star’s bootloader might have been modified before it came into your possession?
A4: I don’t know, but the bootloader works fine on the Windows machine.

Regards

Michel

In case you have not already done so, can you copy the A-Star’s udev rules to /etc/udev/rules.d/ and see if that changes anything?

- Amanda

The A-Star udev rules ile is copied to /etc/udev/rules.d/.

No change. The same issue.

I will move to Windows and buy A-Star micro to complete the project.

The objective of the project is to develop a 12 Vdc General purpose controller with RTC, 4 relays, I/O , I2C, and RS485 network.

Do not hesitate to reply if you have some news about this issue.

Thanks for your support

Regards

Michel

Gpcntrl

We tried reproducing your problem using Arduino 1.8.7 on Ubuntu 18.04 and an A-Star 32U4 but were unable to and programmed the A-Star successfully without any issues. At this point, it seems there might be something wrong with your Linux computer.

Looking at your build output in more detail, the 0x3f portion of the 0x3f0d0d “signature” returned by AVRDUDE is the ASCII question mark, which is sent by the A-Star 32U4 bootloader when it receives an unrecognized command. 0x0d is the ASCII carriage return, which is also sent by the bootloader in response to some commands. Perhaps another program is connecting to the A-Star’s bootloader’s serial port before AVRDUDE and sending some invalid commands to it.

- Amanda