Introduction: How to Upload Bootloader to Any Arduino !
Let's say you brought an Arduino and tried to upload your very first program from Examples and it says Error
avrdude: stk500_getsync()
What this means is that your Arduino has a missing bootloader. So today I will show you how to upload a Bootloader to Any Arduino!
So let's Get Started !
Step 1: Watch the Video !
If you don't want to read all the stuff you can watch my video!
Step 2: Everything We Need !
List:
1) Arduino with the working bootloader if you don't have one borrow it
2) USB Cable
3) Arduino or Atmega chip on which you want to upload bootloader
4) Jumper wires
Optional (for uploading on chip)
5)a 16 MHz crystal
6)a 10k resistor
7)Two 18 to 22 picofarad (ceramic) capacitors.
Step 3: Circuit Diagram
Here are the couple of different possibilities in which you can upload the bootloader to Arduino.
1) First Picture Represent Uploading bootloader from Uno to AtMega 328p-AU
2) The second Picture Represent Uploading Bootloader from Uno to Uno
3) The third Pic represent Uploading bootloader from Uno to Nano
4) The fourth Pic represent Uploading Bootloader from Mega to UNO
Step 4: Burn Bootloader !
1) Wire up the Arduino board and microcontroller as shown in the diagram earlier.
2) Upload the ArduinoISP sketch onto your Arduino board. (You'll need to select the board and serial port from the Tools menu that corresponds to your board.)
3) Select "Your Board Which Is Target" from the Tools > Board
4) Select "Arduino as ISP" from Tools > Programmer
Once finished check if the board is working properly by uploading Blink Sketch on it.
Step 5: Thank You !
If you blink code runs then Congratulations you have uploaded Bootloader Successfully!
If you like my work
Feel free to check out my YouTube channel for more awesome stuff: https://www.youtube.com/c/Nematics_lab
You can also follow me on Facebook, Twitter etc for upcoming projects
https://www.facebook.com/NematicsLab/
5 Comments
2 years ago
Can you load a new bootloader to a board (nano) that already has a bootloader?
2 years ago
i keep getting this error
Arduino: 1.8.12 (Windows Store 1.8.33.0) (Windows 10), Board: "Arduino Nano, ATmega328P"
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
3 years ago
Hey! Thank you so much :)
As I am probably braindead I couldn't get it to work with other tutorials. Seems like I had attached the cables the wrong way around :) Your schematic and explanation made it a succesful operations. I was almost ready to throw in the towel!
Thanks :D
Reply 2 years ago
OMG IT JUST HAPPEN I BOOTLOAD .but the same problem arise...
I just put positve 5v to Vcc instead of the icsp becouse it say
Yaks, invalid
Reply 3 years ago
Happy to Help :)