Go Down

Topic: How to burn the bootloader on a standalone atmega328p? (Read 769 times) previous topic - next topic

hfp777

Hi all,

I have a USBtiny clone programmer and an Atmega328p blank chip.

I would like to burn the Arduino bootloader onto the Atmega but I can't find how to connect the chip to the programmer.

Can anyone advise?
Thanks
I am a total amateur at electronics and all things related. I have no education in the matter other than self taught.

Please factor this in

CrossRoads

Put the chip into a solderless breadboard.
Get a couple more components:
16 MHz xtal
two 22 pf caps
two 100nF caps
10K resistor.
inexpensive source with low shipping costs: www.dipmicro.com

Wire the chip like a bare minimum Arduino:
xtal across the xtal pins, with 22 pF caps from xtral pins to gnd
10K from reset to +5
Vcc, AVCC to +5
Gnd to Gnd
100nF caps from VCC, AVCC to gnd.

Connect the programmer:
+5 to VCC, AVCC
Gnd to Gnd
MISO to MISO
MOSI to MOSI
Reset to Reset
SCK to SCK

In the IDE:
Select Tools:Board:Uno
Select Tools:Programmer: your programmer

Select Tools: Burn bootloader.

I think that covers it all.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Vincent19

If I burn the bootloader version where I do not require the chip to use external crystal then I can eliminate the need of the 22pF cap and the external 16Mhz crystal ? Is it necessary to pull up the RESET pin to HIGH(5V) ??

CrossRoads

Yes.  I do not know what board type that would be.

Reset recommended for more stable operation. See section 3 of attached.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

CrossRoads

From the Arduino (older) Hardware page:

http://arduino.cc/en/Main/Boards

The initial design of the Arduino LilyPad had a 10-pin ICSP header and used the internal clock on the ATmega168 rather than an external oscillator. The bootloader on the initial design is the traditional NG bootloader.

So you could probably do something like make a new boards.txt entry for a '328 or '328P with appropriate fuse settings for internal oscillator.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Nick Gammon


I would like to burn the Arduino bootloader onto the Atmega but I can't find how to connect the chip to the programmer.


http://www.gammon.com.au/forum/?id=11637
http://www.gammon.com.au/electronics

hfp777

Thak you all, I will try this and let you know if anything
I am a total amateur at electronics and all things related. I have no education in the matter other than self taught.

Please factor this in

Go Up