Pages: 1 [2]   Go Down
Author Topic: [SOLVED] ATmega328 on BreadBoard Bootloader Question  (Read 2553 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 436
Posts: 23623
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

Ok, you have 6 wires coming out of the pocket programmer - not one of them goes to PIN 1.

Fix your wiring - I think you are mixing up the software name for the pins with hardware names.
Make the pocket programmer connect to these pins:

SCK - physical pin 19
MISO - physical pin 18
MOSI - physical pin 17
RESET - physical pin 1
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
Newbie
*
Karma: 0
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, you have 6 wires coming out of the pocket programmer - not one of them goes to PIN 1.

Fix your wiring - I think you are mixing up the software name for the pins with hardware names.
Make the pocket programmer connect to these pins:

SCK - physical pin 19
MISO - physical pin 18
MOSI - physical pin 17
RESET - physical pin 1

Thanks that worked on the USBTinyISP even with the reset switch in the way.

On the Arduino UNO R3 remove the chips and use the header not the shield connectors to do the same thing?  One of the diagrams shows them using the shield rail without the chip in place and using 13,12,~11 and ~10.  But if the chip is removed then how can those be used?

I am trying the Arduino now but using the header.  Not sure about the shield pins

Thanks Again!!


EDITED:

So the issue is resolved with USBTinyISP.  It works without all the trouble I described.   I cannot get the Arduino UNO R3 to work.  I get a Not in Sync.

Do I need to put a resistor on the shield reset pin and +5 volts?


EDITED AGAIN:

From the diagrams:

http://arduino.cc/en/Tutorial/ArduinoToBreadboard

It not 100% clear put it looks like the ATmega328 is not removed from the Arduino Uno R3 when burning a bootloader onto another ATmega328 on a breadboard for example.

Is this true?  Can I use either the 6 pin header or the Pins off the shield as shown from the link above?

Thanks
« Last Edit: October 10, 2012, 02:25:02 am by pcfr33k » Logged

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

Connect the 6 pins from the pocket programmer to either the ICSP header, or to Reset-SCK-MISO-MOSI on the female header and program away.
Nothing needs to be done to the card.

Arduino - to - breadboard. Why are you messing with that when you have a nice working AVR ISP?  Stay away from that.
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
Newbie
*
Karma: 0
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Connect the 6 pins from the pocket programmer to either the ICSP header, or to Reset-SCK-MISO-MOSI on the female header and program away.
Nothing needs to be done to the card.

Arduino - to - breadboard. Why are you messing with that when you have a nice working AVR ISP?  Stay away from that.

Well thanks for everyones help on this Post.

@CrossRoads,

I see your point about not needing to use the Arduino UNO R3 as an ISP since I already have a good working one to use.


I just wanted to see if I can get the Arduino UNO to work as the ISP as well.  I tried it with the female header and with the male header and I just cannot not get it to sync no matter what I do.


So the problem was not really with the TInyUSB but rather the Arduino as an ISP.  I just confused things by starting out with the TinyUSB when I should have had the Arduino connected up and took a picture of that instead.

Have you ever got it to work with the Arduino?
« Last Edit: October 10, 2012, 04:55:46 pm by pcfr33k » Logged

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

Never tried. The original seemed like a kludge; it has been replaced with better programs, yet the original is still out there confusig things.
I have a Duemilanove with pins added to the X3 connector that I used for bit-banging bootloaders. That was slow, and a little cumbersome, so I moved on.
I now have at least 4 other ISPs.
Started with this one
http://www.mdfly.com/index.php?main_page=product_info&cPath=5&products_id=415
and used it for a long time.
Next I got an Atmel MKii when I was having trouble getting 1284s to program (turned out to be bootloader/IDE mismatch speed, since resolved).
I now use the MKii exclusively - the MDFLY is buried somewhere, had never even tried the others (had planned to, hasn't worked out timewise yet)
and occasionally plug on an FTDI Basic to show a serial port is working.

Somewhere along the line picked up an adafruit programmer with some other stuff someone was dumping, then a pocket pirate, and I think other too, maybe from nkcelectronics, unless that's the sparkfun pocketpirate.
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.

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16470
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Never tried. The original seemed like a kludge; it has been replaced with better programs, yet the original is still out there confusig things.
I have a Duemilanove with pins added to the X3 connector that I used for bit-banging bootloaders. That was slow, and a little cumbersome, so I moved on.
I now have at least 4 other ISPs.
Started with this one
http://www.mdfly.com/index.php?main_page=product_info&cPath=5&products_id=415
and used it for a long time.
Next I got an Atmel MKii when I was having trouble getting 1284s to program (turned out to be bootloader/IDE mismatch speed, since resolved).
I now use the MKii exclusively - the MDFLY is buried somewhere, had never even tried the others (had planned to, hasn't worked out timewise yet)
and occasionally plug on an FTDI Basic to show a serial port is working.

Somewhere along the line picked up an adafruit programmer with some other stuff someone was dumping, then a pocket pirate, and I think other too, maybe from nkcelectronics, unless that's the sparkfun pocketpirate.

Bob, I have no doubt that soon you will be able to burn a bootloader into a blank AVR using just a battery and a morse code key.  smiley-wink

Lefty
Logged

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

and a ZIF socket ...
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 [2]   Go Up
Jump to: