"I did something" repair not working on 32u4

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jd213
 
Posts: 3
Joined: Sun Jan 15, 2023 2:41 pm

"I did something" repair not working on 32u4

Post by jd213 »

Made an upload when I had the wrong board selected in Arduino IDE 2.0.3, and now my 32u4 is showing up as an unknown device in Windows 10 and "NO PORTS DISCOVERED" is showing for "Select Other Board and Port". The port will briefly reappear and the 32u4 will be recognized as a USB Serial Device (COM8) in Windows if I hit Reset n the board twice, but then it goes away again.

I followed the directions for " Ack! I "did something" and now when I plug in the Itsy/Feather, it doesn't show up as a device anymore so I cant upload to it or fix it..."
in this post: https://learn.adafruit.com/adafruit-fea ... logger/faq

But the upload doesn't finish before the COM port disappears again and the board shows as [not connected] at the bottom of the IDE window, and I get an "exit status 1" error. Have been able to time it so that the upload starts right after the COM port reappears, but it's still not enough time apparently.

Have tried a different USB cable, but can't even get the COM port to show up with it.

Is there anything else I can try? Thanks in advance. Here is the full log in case it's needed:

Code: Select all

Using board 'itsybitsy32u4_5V' from platform in folder: C:\Users\Jou\AppData\Local\Arduino15\packages\adafruit\hardware\avr\1.4.15
Using core 'arduino' from platform in folder: C:\Users\Jou\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Detecting libraries used...
"C:\\Users\\Jou\\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_ITSYBITSY32U4_5V -DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800E "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy 32u4 5V 16MHz\"" "-IC:\\Users\\Jou\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\Jou\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\avr\\1.4.15\\variants\\itsybitsy32u4" "C:\\Users\\Jou\\AppData\\Local\\Temp\\arduino-sketch-EE170C0EABD5A3ADC842AFDF1DC63D54\\sketch\\Blink.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\Jou\\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_ITSYBITSY32U4_5V -DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800E "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy 32u4 5V 16MHz\"" "-IC:\\Users\\Jou\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\Jou\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\avr\\1.4.15\\variants\\itsybitsy32u4" "C:\\Users\\Jou\\AppData\\Local\\Temp\\arduino-sketch-EE170C0EABD5A3ADC842AFDF1DC63D54\\sketch\\Blink.ino.cpp" -o "C:\\Users\\Jou\\AppData\\Local\\Temp\\arduino-sketch-EE170C0EABD5A3ADC842AFDF1DC63D54\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\Jou\\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\\Jou\\AppData\\Local\\Temp\\arduino-sketch-EE170C0EABD5A3ADC842AFDF1DC63D54\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\Jou\\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_ITSYBITSY32U4_5V -DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x800E "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"ItsyBitsy 32u4 5V 16MHz\"" "-IC:\\Users\\Jou\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\Jou\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\avr\\1.4.15\\variants\\itsybitsy32u4" "C:\\Users\\Jou\\AppData\\Local\\Temp\\arduino-sketch-EE170C0EABD5A3ADC842AFDF1DC63D54\\sketch\\Blink.ino.cpp" -o "C:\\Users\\Jou\\AppData\\Local\\Temp\\arduino-sketch-EE170C0EABD5A3ADC842AFDF1DC63D54\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\Jou\AppData\Local\Temp\arduino-core-cache\core_adafruit_avr_itsybitsy32u4_5V_351e37e5ea3e2f4658f8aae59e5e74dd.a
Linking everything together...
"C:\\Users\\Jou\\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\\Jou\\AppData\\Local\\Temp\\arduino-sketch-EE170C0EABD5A3ADC842AFDF1DC63D54/Blink.ino.elf" "C:\\Users\\Jou\\AppData\\Local\\Temp\\arduino-sketch-EE170C0EABD5A3ADC842AFDF1DC63D54\\sketch\\Blink.ino.cpp.o" "C:\\Users\\Jou\\AppData\\Local\\Temp\\arduino-sketch-EE170C0EABD5A3ADC842AFDF1DC63D54/..\\arduino-core-cache\\core_adafruit_avr_itsybitsy32u4_5V_351e37e5ea3e2f4658f8aae59e5e74dd.a" "-LC:\\Users\\Jou\\AppData\\Local\\Temp\\arduino-sketch-EE170C0EABD5A3ADC842AFDF1DC63D54" -lm
"C:\\Users\\Jou\\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\\Jou\\AppData\\Local\\Temp\\arduino-sketch-EE170C0EABD5A3ADC842AFDF1DC63D54/Blink.ino.elf" "C:\\Users\\Jou\\AppData\\Local\\Temp\\arduino-sketch-EE170C0EABD5A3ADC842AFDF1DC63D54/Blink.ino.eep"
"C:\\Users\\Jou\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\Jou\\AppData\\Local\\Temp\\arduino-sketch-EE170C0EABD5A3ADC842AFDF1DC63D54/Blink.ino.elf" "C:\\Users\\Jou\\AppData\\Local\\Temp\\arduino-sketch-EE170C0EABD5A3ADC842AFDF1DC63D54/Blink.ino.hex"

"C:\\Users\\Jou\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\Jou\\AppData\\Local\\Temp\\arduino-sketch-EE170C0EABD5A3ADC842AFDF1DC63D54/Blink.ino.elf"
Sketch uses 3872 bytes (13%) of program storage space. Maximum is 28672 bytes.
Global variables use 149 bytes of dynamic memory.
Performing 1200-bps touch reset on serial port COM8
Waiting for upload port...
No upload port found, using address:"COM8" label:"COM8" protocol:"serial" protocol_label:"Serial Port (USB)" properties:{key:"pid" value:"0x000E"} properties:{key:"serialNumber" value:""} properties:{key:"vid" value:"0x239A"} as fallback

"C:\Users\Jou\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\Jou\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -patmega32u4 -cavr109 -PCOM8 -b57600 -D "-Uflash:w:C:\Users\Jou\AppData\Local\Temp\arduino-sketch-EE170C0EABD5A3ADC842AFDF1DC63D54/Blink.ino.hex:i"
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\Jou\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM8
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
avrdude: ser_open(): can't open device "\\.\COM8": �w�肳�ꂽ�t�@�C�������‚���܂���B



avrdude done.  Thank you.

Failed uploading: uploading error: exit status 1

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: "I did something" repair not working on 32u4

Post by mikeysklar »

Which board are you using? I see the processor is a 32u4. Is it the Feather 32u4 Adalogger?

Can you try uploading a blink example and just before you hit the upload button from the Arduino IDE double-click the reset button on your board. The timing is critical and will probably take multiple tries to figure out.

User avatar
jd213
 
Posts: 3
Joined: Sun Jan 15, 2023 2:41 pm

Re: "I did something" repair not working on 32u4

Post by jd213 »

Thanks for the reply.

It's an Itsy Bitsy 32u4, sorry for the confusion.

I've tried uploading Blink dozens of times at various timings, but no matter when I press Reset x2, the upload doesn't finish before it disconnects and gives me the "exit status 1" error.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: "I did something" repair not working on 32u4

Post by mikeysklar »

Let's try and stick with the guide to get you going again.

1) Install the 1.8.19 release of the Arduino IDE.

https://learn.adafruit.com/introducting ... -ide-setup

2) Updates the Additional Boards Manager URL Arduino --> Preferences

https://adafruit.github.io/arduino-boar ... index.json

3) Install the Adafuit AVR Boards

4) It is a single RST press to manually bootload. Try uploading the blink program again, but the timing here is critical.

https://learn.adafruit.com/introducting ... ng-2979293
Don't click the reset button before uploading, unlike other bootloaders you want this one to run at the time Arduino is trying to upload

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: "I did something" repair not working on 32u4

Post by Franklin97355 »

Also, if you set the preferences in upload to verbose you may have more time to click the reset button.

User avatar
jd213
 
Posts: 3
Joined: Sun Jan 15, 2023 2:41 pm

Re: "I did something" repair not working on 32u4

Post by jd213 »

mikeysklar wrote: Tue Jan 17, 2023 7:28 pm Let's try and stick with the guide to get you going again.

1) Install the 1.8.19 release of the Arduino IDE.
Ah, thank you! It worked after a couple of tries with this release, and my ItsyBitsy is working again.
Franklin97355 wrote: Tue Jan 17, 2023 10:02 pm Also, if you set the preferences in upload to verbose you may have more time to click the reset button.
It seemed mostly the same on IDE 2.0.3, but it could indeed give one more time depending on the situation.

Locked
Please be positive and constructive with your questions and comments.

Return to “Itsy Bitsy Boards”