Pages: [1]   Go Down
Author Topic: How to burn the bootloader on a standalone atmega328p?  (Read 745 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 118
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

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

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27352
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

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.

Offline Offline
Sr. Member
****
Karma: 2
Posts: 338
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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) ??
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27352
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Reset recommended for more stable operation. See section 3 of attached.

* Atmel AVR042 AVR Hardware Design Considerations.pdf (236.19 KB - downloaded 12 times.)
Logged

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.

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27352
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

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.

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 495
Posts: 19040
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged


Offline Offline
Full Member
***
Karma: 0
Posts: 118
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thak you all, I will try this and let you know if anything
Logged

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

Pages: [1]   Go Up
Jump to: