Flash ATmega32u4
Video Tutorial
Instructions
- Open
atmegaduck/atmega_duck.ino
with the Arduino IDE - Under
Tools
>Board
in theWiFi Duck AVR
section, select your board. For example,Sparkfun Pro Micro
. - Connect the Atmega32u4 board via USB and select its port under
Tools
>Port
- (Optional: Under
Tools
, you can enable the LED and set its pin. You can also change the USB ID to make it appear as a certain type of keyboard.) - Press Upload
Unbrick Atmega32u4
If you flashed your Atmega32u4 board with the wrong bootloader, it would no longer appear in the port selection after you connect it.
To solve this, you need to:
- Connect the reset pin
RST
to groundGND
. Preferably with a jumper wire because you need to be able to disconnect it quickly. - Open a sketch (
atmegaduck/atmega_duck.ino
or an empty sketch) Make sure to have the correct board selected underTools
>Board
! - Connect the board with the wire still connected.
- Press
Upload
and as soon as you seeCompiling...
turn toUploading...
, disconnect the wire.
Now it should flash the sketch together with the correct bootloader.