-
-
Notifications
You must be signed in to change notification settings - Fork 183
Burning the bootloader via ISP (advanced)
This is for advanced users who want to burn the bootloader with an external ISP directly. You can do this with your program if choice (e.g. avr-dude) or use the Arduino IDE. You can either use an official ISP or let your Arduino Uno/Mega/Leonardo/Micro/16u2 act as ISP. You can also burn the original DFU bootloader (with USB-Serial) this way. Scroll down for 32u4 instructions
###Arduino as ISP 8/16/32u2 Assuming you want to use a 2nd Arduino as ISP with the IDE follow these steps:
Unplug both Arduinos from USB. Never change wires when the devices are powered! Connect all wires from the 2nd Arduinos main MCU to the 16u2. You also need to connect 5V-5V and GND-GND to power the board. Unplug the USB cable of the Arduino you are flashing. In this case you do not need the capacitor which we use in the standalone version.
Pin connections:
328/2560 - 16u2
GND - GND
5V - 5V
MOSI - MOSI
MISO - MISO
SCK - SCK
PIN 10 - 16u2 RESET
- Follow this tutorial to setup the ISP and other settings.
- Select under
Tools > Board
HoodLoader2 16u2 - In the
Tools > Bootloader
menu select HoodLoader2 Uno, Mega (or DFU) - In the
Tools > Programmer
menu select Arduino as ISP (Leonardo). - Hit under
Tools
"Burn Bootloader".
HoodLoader2 Fuses:
low_fuses=0xEF
high_fuses=0xD8 (boot to Bootloader)
extended_fuses=0xFC (no HWBE)
unlock_bits=0x3F
lock_bits=0x0F
Official DFU + USB-Serial Fuses:
low_fuses=0xEF
high_fuses=0xD9 (boot to program)
extended_fuses=0xF4 (with HWBE)
unlock_bits=0x3F
lock_bits=0x0F
###32u4
- Follow this tutorial to setup the ISP and other settings.
- Select under
Tools > Board
HoodLoader2 32u4 - In the
Tools > Bootloader
menu select HoodLoader2 Leonardo, Micro (or DFU) - In the
Tools > Programmer
menu select Arduino as ISP (Leonardo). - Hit under
Tools
"Burn Bootloader".
HoodLoader2 Fuses:
low_fuses=0xFF
high_fuses=0xD8 (boot to Bootloader)
extended_fuses=0xFC (no HWBE)
unlock_bits=0x3F
lock_bits=0x2F
DFU Fuses:
low_fuses=0xFF
high_fuses=0xD9 (boot to program)
extended_fuses=0xC4 (with HWBE)
unlock_bits=0x3F
lock_bits=0x2F
Original Fuses:
low_fuses=0xEF
high_fuses=0xD8 (boot to bootloader)
extended_fuses=0xCB (no HWBE)
unlock_bits=0x3F
lock_bits=0x2F
Copyright (c) 2014-2021 NicoHood
Additional Information