Pages: [1]   Go Down
Author Topic: Success burning bootlloader onto a blank part!  (Read 941 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27357
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

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.
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
Dallas
Online Online
Shannon Member
*****
Karma: 209
Posts: 13028
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Hurrah!  Good feeling, eh?

(The part that worked.  Not the bit about Optiboot.  That's got to be annoying.)
« Last Edit: March 19, 2011, 02:27:53 am by Coding Badly » Logged

Red Sea, Saudi Arabia
Offline Offline
God Member
*****
Karma: 12
Posts: 579
..On The Red Sea
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Um, I heard there were TWO Optiboots, one for Uno, and another for ??? older boards.  Maybe??
Logged

Regards, Terry King  ..On the Red Sea at KAUST.edu.sa
terry@yourduino.com  LEARN! DO! (Arduino Boards, Sensors, Parts @ http://yourduino.com

0
Offline Offline
Shannon Member
****
Karma: 215
Posts: 12463
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That only seems to be an option for the Diecimila/Duemilanova boards, not the Uno?
Logged

[ I won't respond to messages, use the forum please ]

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27357
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

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.
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: 27357
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

@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:.
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.

Pages: [1]   Go Up
Jump to: