Pages: [1]   Go Down
Author Topic: Boot Cloner for Arduino Atmega 328  (Read 1093 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 28
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, i am a newbie to Arduino... just got a Uno  Smiley.

I wanted to make an extra 328 chip with Arduino boot-loader, just in case i mess up the one i have.

I was looking into Arduino Boot Cloner

arduino.cc/playground/BootCloner/BootCloner

Very informative, but could some please guide me to do the same with Atmega 328 chip (Boot Cloner for Atmega 328)?
Thank you.
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 55
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

this should answer your problem
http://jeelabs.org/2010/04/25/preparing-atmegas-with-isp/
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 28
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Arnonh,

After going through http://jeelabs.org/2010/04/25/preparing-atmegas-with-isp/, I could understand that each time you are programming your arduino you are burning the IDE as well.

Please correct me if I am wrong.

Isn't it possible to just load the Atmega 328 chip with the IDE first and load the code through the already existing Arduino?

Please clarify. Thank you.
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 55
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

if by IDE you mean bootloader
then after the first time you prepare the atmega
you will be able to use it as any normal arduino

just one note however:
when you follow his guide you will get the bootloader for the old boards
so you will need to change your board in the menu every time you use the new atmega
or edit the prepare sketch
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 28
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

'when you follow his guide you will get the bootloader for the old boards
so you will need to change your board in the menu every time you use the new atmega or edit the prepare sketch'

I didn't understand that part  smiley-sad Could you please explain it in detail?
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 55
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


choose:
Arduino Duemilanove or Nano w/ ATmega328

I will try to make and post a sketch usable for the Uno
tomorrow(but no promises)
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 28
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Arnonh, you are a life saver.. smiley

I'm eagerly waiting for the Uno sketch. Would be of great help if you can post it.
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 55
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

use this instead of data_blink.h in isp_prepare sketch
i believe it should work but i haven't tested it fully

Code:
// This file was generated by hex2c.tcl on Tue Nov 09 11:29:03 +0200 2010

struct { const char* title; unsigned start, off, count; } sections[] = {
 {"2010-10-02 optiboot_atmega328.hex         492b @ 0x7E00",0x7E00,0,492},
 {"2010-06-08 Blink.cpp.hex                  896b @ 0x0000",0x0000,492,896},
};

const unsigned char progdata[] PROGMEM = {
 133,224,128,147,129,0,130,224,128,147,192,0,136,225,128,147,193,0,134,224,128,
 147,194,0,128,225,128,147,196,0,132,183,20,190,129,255,208,208,141,224,200,208,
 37,154,134,224,32,227,60,239,145,224,48,147,133,0,32,147,132,0,150,187,176,155,
 254,207,29,154,168,149,129,80,169,247,221,36,211,148,165,224,234,46,241,225,
 255,46,164,208,129,52,33,244,129,224,190,208,131,224,36,192,130,52,17,244,132,
 225,3,192,133,52,25,244,133,224,180,208,138,192,133,53,161,244,146,208,8,47,16,
 224,16,147,1,2,0,147,0,2,139,208,144,224,152,47,136,39,128,43,145,43,136,15,
 153,31,144,147,1,2,128,147,0,2,115,192,134,53,41,244,132,224,153,208,128,224,
 113,208,109,192,132,54,9,240,67,192,124,208,224,145,0,2,240,145,1,2,131,224,
 128,147,87,0,232,149,192,224,209,224,105,208,137,147,128,145,2,2,129,80,128,
 147,2,2,136,35,185,247,120,208,7,182,0,252,253,207,64,145,0,2,80,145,1,2,160,
 224,177,224,44,145,48,224,17,150,140,145,17,151,144,224,152,47,136,39,130,43,
 147,43,18,150,250,1,12,1,208,146,87,0,232,149,17,36,78,95,95,79,241,224,160,56,
 191,7,73,247,224,145,0,2,240,145,1,2,224,146,87,0,232,149,7,182,0,252,253,207,
 240,146,87,0,232,149,39,192,132,55,185,244,55,208,70,208,224,145,0,2,240,145,1,
 2,49,150,240,147,1,2,224,147,0,2,49,151,228,145,142,47,25,208,128,145,2,2,129,
 80,128,147,2,2,136,35,97,247,14,192,133,55,57,244,46,208,142,225,12,208,133,
 233,10,208,143,224,150,207,129,53,17,244,136,224,25,208,35,208,128,225,1,208,
 99,207,152,47,128,145,192,0,133,255,252,207,144,147,198,0,8,149,168,149,128,
 145,192,0,135,255,252,207,128,145,198,0,8,149,247,223,246,223,128,147,2,2,243,
 207,224,230,240,224,152,225,144,131,128,131,8,149,128,224,248,223,238,39,255,
 39,9,148,231,223,128,50,9,240,247,223,132,225,218,207,31,147,24,47,223,223,17,
 80,233,247,244,223,31,145,8,149,12,148,97,0,12,148,126,0,12,148,126,0,12,148,
 126,0,12,148,126,0,12,148,126,0,12,148,126,0,12,148,126,0,12,148,126,0,12,148,
 126,0,12,148,126,0,12,148,126,0,12,148,126,0,12,148,126,0,12,148,126,0,12,148,
 126,0,12,148,157,0,12,148,126,0,12,148,126,0,12,148,126,0,12,148,126,0,12,148,
 126,0,12,148,126,0,12,148,126,0,12,148,126,0,12,148,126,0,0,0,0,0,36,0,39,0,42,
 0,0,0,0,0,37,0,40,0,43,0,0,0,0,0,35,0,38,0,41,0,4,4,4,4,4,4,4,4,2,2,2,2,2,2,3,
 3,3,3,3,3,1,2,4,8,16,32,64,128,1,2,4,8,16,32,1,2,4,8,16,32,0,0,0,7,0,2,1,0,0,3,
 4,6,0,0,0,0,0,0,0,0,17,36,31,190,207,239,216,224,222,191,205,191,17,224,160,
 224,177,224,238,231,243,224,2,192,5,144,13,146,162,48,177,7,217,247,17,224,162,
 224,177,224,1,192,29,146,171,48,177,7,225,247,14,148,182,1,12,148,189,1,12,148,
 0,0,128,145,0,1,97,224,14,148,105,1,104,238,115,224,128,224,144,224,14,148,229,
 0,128,145,0,1,96,224,14,148,105,1,104,238,115,224,128,224,144,224,14,148,229,0,
 8,149,128,145,0,1,97,224,14,148,73,1,8,149,31,146,15,146,15,182,15,146,17,36,
 47,147,63,147,143,147,159,147,175,147,191,147,128,145,6,1,144,145,7,1,160,145,
 8,1,176,145,9,1,48,145,10,1,1,150,161,29,177,29,35,47,45,95,45,55,32,240,45,87,
 1,150,161,29,177,29,32,147,10,1,128,147,6,1,144,147,7,1,160,147,8,1,176,147,9,
 1,128,145,2,1,144,145,3,1,160,145,4,1,176,145,5,1,1,150,161,29,177,29,128,147,
 2,1,144,147,3,1,160,147,4,1,176,147,5,1,191,145,175,145,159,145,143,145,63,145,
 47,145,15,144,15,190,15,144,31,144,24,149,239,146,255,146,15,147,31,147,123,1,
 140,1,143,183,248,148,64,145,6,1,80,145,7,1,96,145,8,1,112,145,9,1,143,191,47,
 183,248,148,128,145,6,1,144,145,7,1,160,145,8,1,176,145,9,1,47,191,132,27,149,
 11,166,11,183,11,232,22,249,6,10,7,27,7,96,247,31,145,15,145,255,144,239,144,8,
 149,120,148,132,181,130,96,132,189,132,181,129,96,132,189,133,181,130,96,133,
 189,133,181,129,96,133,189,238,230,240,224,128,129,129,96,128,131,225,232,240,
 224,128,129,130,96,128,131,128,129,129,96,128,131,224,232,240,224,128,129,129,
 96,128,131,225,235,240,224,128,129,132,96,128,131,224,235,240,224,128,129,129,
 96,128,131,234,231,240,224,128,129,132,96,128,131,128,129,130,96,128,131,128,
 129,129,96,128,131,128,129,128,104,128,131,16,146,193,0,8,149,40,47,48,224,201,
 1,134,86,159,79,252,1,148,145,42,87,63,79,249,1,132,145,136,35,145,240,232,47,
 240,224,238,15,255,31,232,89,255,79,165,145,180,145,102,35,41,244,140,145,144,
 149,137,35,140,147,8,149,140,145,137,43,140,147,8,149,72,47,80,224,202,1,130,
 85,159,79,252,1,36,145,202,1,134,86,159,79,252,1,148,145,74,87,95,79,250,1,52,
 145,51,35,209,241,34,35,49,241,35,48,33,244,128,145,128,0,143,119,5,192,36,48,
 49,244,128,145,128,0,143,125,128,147,128,0,24,192,33,48,25,244,132,181,143,119,
 4,192,34,48,33,244,132,181,143,125,132,189,13,192,38,48,33,244,128,145,176,0,
 143,119,5,192,39,48,41,244,128,145,176,0,143,125,128,147,176,0,227,47,240,224,
 238,15,255,31,238,88,255,79,165,145,180,145,102,35,41,244,140,145,144,149,137,
 35,140,147,8,149,140,145,137,43,140,147,8,149,14,148,15,1,14,148,151,0,14,148,
 128,0,253,207,248,148,255,207,13,0,
};

please let me know if this solves your problem
Logged

Pages: [1]   Go Up
Jump to: