-
-
Notifications
You must be signed in to change notification settings - Fork 185
Burn the bootloader from another Arduino
You can also use a 2nd Arduino to flash the bootloader. For example if you can't access the first Arduino for some reason. We are just uploading the installation sketch to another Arduino and connect the wires a bit different.
You can use any kind of Arduino Leonardo/Micro/Mega/Uno/Nano etc for this operation.
First remove all hardware/wires/usb-cable from your Arduino to ensure nothing is messing up the upload. Never change wires when the devices are powered!
- Connect your Arduino (that acts as uploader) to your PC
- Select the Arduino board that acts as uploader (do not select 16u2).
- Open the installation sketch
Installation_Sketch.ino
- Edit the Settings if needed (for Uno, Mega, 8u2 or 32u2 board for example).
- Upload the installation sketch to your Arduino (Ctrl + U).
- Wait until it says "Done uploading". This may take a while.
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
Once the installation sketch is uploaded to your main MCU you are able to burn the bootloader to your 16u2. It will automatically try to flash the bootloader once the sketch is uploaded and the Arduino is powered. You have 10 seconds (after plugging in) to enter the Serial Monitor to see some debug output if wanted.
- Open the Serial port monitor at baud 115200.
- No capacitor needed, ignore that.
- Read the instructions and wait.
- The 2nd Arduino will flash the new bootloader.
- Wait until the Serial Monitor says programming finished.
- You may close the Serial monitor now.
For more help have a look here.
This no longer looks that complicated. You dont need to input anything, just wait and look at the output.
Now your Arduino should be flashed with the new bootloader. To check your HoodLoader2 installation read on here. If its not correctly installed read the instructions carefully and try again.
Copyright (c) 2014-2021 NicoHood
Additional Information