Go Down

Topic: Success burning bootlloader onto a blank part! (Read 1 time) previous topic - next topic

CrossRoads

I purchased some blank atmega328s a while ago, and having used the pair or programmed parts I also bought, and all the promini's I bought, and the 2 atmega328s I had on two duemilanoves, I was finally out of options and had to learn how to use the blank ones.
So, after a bunch of fooling around, I was able to get the Bit Bang method here working

http://www.geocities.jp/arduino_diecimila/bootloader/index_en.html

Made up a X3 to ICSP cable, added pins to the X3 connecter, downloaded , unzipped, moved files as directed, then downloaded some more to get the avrdude.conf file that include the 328P.  Set the fuses for the 328, wrote those okay, then burned the optiboot for the 328, verified it, wrote the lock bit. Unplugged everything, opened the IDE and tried to download the blink program. Couldn't do it. Tried several times with no luck, lots of reset pushing at different times & lengths, just the dreaded Not in Sync error (the one that ends with 0051).
Went back, unlocked the part, cycled power again and downloaded the standard bootloader for 168-328. Set the lockbit, unplugged and replugged for the IDE, and this time Blink downloaded okay.
Not sure what  the problem is with optiboot & downloading, but I have a working method anyway now.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Coding Badly

#1
Mar 19, 2011, 08:02 am Last Edit: Mar 19, 2011, 08:27 am by Coding Badly Reason: 1

Hurrah!  Good feeling, eh?

(The part that worked.  Not the bit about Optiboot.  That's got to be annoying.)

Terry King

Um, I heard there were TWO Optiboots, one for Uno, and another for ??? older boards.  Maybe??
Regards, Terry King  ..On the Red Sea at KAUST.edu.sa
terry@yourduino.com  LEARN! DO! (Arduino Boards, Sensors, Parts @ http://yourduino.com

MarkT

That only seems to be an option for the Diecimila/Duemilanova boards, not the Uno?
[ I won't respond to messages, use the forum please ]

CrossRoads

The Uno doesn't seem to have the equivalent of an X3 connector with CTS, DSR, DCD, and RI signals (all generally Modem control signals).
The ATMega 8U2 chip has unused pins so it would seem to be expandable to add that functionality with some jumpers to a connecter and the proper programming.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

CrossRoads

@Terry,
Its possible I had the wrong optiboot, being my first time sussing the process out.
I also struggled with my Arduino-0021 folder seemingly disappearing, Windows Vista had it in some Virtual Program Files area or something, was a bunch of aggravation to find it and get it back under C:.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up