Arduino as ISP to Burn Bootloader on AVR Microcontroller

preview_player
Показать описание

The exact steps:
1. Flash ArduinoISP sketch from Arduino IDE on Arduino Uno. Load the sketch from File - Examples - Arduino IDE.
2. Add 10uF capacitor (22uF may also work) to Arduino Uno. The long leg goes to RESET and the short leg to GND.
4. In Arduino IDE select an appropriate target board, for examples Arduino Nano or Arduino Leonardo. Click Tools - Burn Bootloader. It is recommended to have enabled verbose output in Arduino IDE preferences before that. Arduino Uno will act as a programmer and burn bootloader to the target board.

Note: On ubuntu 22.04 there is conflict between brltty and ch341-uart converter on Arduino Uno, as a work around to solve it remove brltty:

sudo apt remove brltty

Please note this is an advanced tutorial. Do it on your own risk. You may need to make adjustments if you are using different (but still compatible) hardware.
Рекомендации по теме
Комментарии
Автор

Some help in understanding the definition of bootloader at 0:43

What is meant by "at every reset"? Does it mean by the pressing of the reset button? It seems that it cannot be, since the pressing of the reset button is not needed to upload.

woodensurfer
Автор

Great video and explanations.. I had to rewind video a few times, you was a bit too fast, and video was on the small side..I had to F11 to be able to see it better....otherwise excellent video..

rays.
Автор

Would it work if I have a 100 uF capacitor?

johanfernandoromoeligio
Автор

I noticed you are using an Arduino Uno with a SMD Atmega328P-AU chip. Have you tried using an Arduino Uno with a DIP Atmega328p-pu chip to burn the bootloader and does it work?

arnoldc
Автор

How burn bootloader on Arduino Mega via Leonardo?

hennenbergphysqm
Автор

I finally get it to work.

The problem for me is that at 4:08, the procedure was not explained enough. Spoken was "nano" but shown is "genuine UNO".

There is no reason why "genuine UNO" is shown. Just confusing.

Step four should be to SWITCH from UNO to nano without changing the comx. There is no comx for the nano, only the UNO. Programmer at the UNO should be "Arduino as ISP". This should be clear.

woodensurfer
Автор

Why arduino nano you only have to connect Target. And the atmega has to connect programmer and also target

ronny
Автор

Sir..
Any tips for losing the COM port and USB port in Arduino Leonardo.?

and can i burn bootloader same leonardo board?

jerryohhh
Автор

What kind of electrical characteristics are those - a long leg and a short leg?

joeblow
Автор

So I had been struggling to get a Pro Micro to burn the bootloader because the device was not being recognized in Windows.

I was trying to use a Mega2560R3 and kept getting a number of different errors. I watched a number of videos trying to resolve it with no luck and came across yours. I had just read the ISP code header comments and saw that white wire stretching over from pin 10 on you setup. *Smacks forehead* I was using the ICSP reset not pin 10! (as was noted in the fore mentioned code comments) Changed that and bam, newly burned loader!

I also discovered my original issue of the device not showing up is/was an issue with the micro usb connector. If I pushed the connector all the way in it would not be seen. However, if I pulled it out slightly it would connect. I should have know as I would get intermittent connect/disconnects when attaching the usb cable. Ahhh, life on the edge LOL

FSEAirboss