Go Down

Topic: [SOLVED] ATmega328 on BreadBoard Bootloader Question (Read 3616 times) previous topic - next topic

pcfr33k

Oct 10, 2012, 05:50 am Last Edit: Oct 11, 2012, 05:21 am by pcfr33k Reason: 1
I am beating my head against the wall here.  I figured out how to use the reset switch on the ATmega328 on a Breadboard to successfully upload any and all sketches.   The procedure is not exactly the same with Burning a new Bootloader onto the ATmega328 and I cannot figure out why or if this is normal or not?

I cannot release the Reset button until the bootloader has been burned and verified.   If release it for example while its verifying the burn I get a error.

If I release the Momentary Switch at any time the process fails.  Yet I can release the button when uploading a sketch usually right after I see the message come up on the window, I forget exactly what it is, but the point is, it works every time when I upload a sketch.

If I keep the button depressed the entire time until I see "DONE" or "COMPLETE", the bootloader successfully burns, with no errors!!

Does this sound normal??

It doesn't matter if I use an Arduino Uno R3 or the USBtinyISP as the host, I get the same results.

I know my connections are 100% correct on the breadboard.

Maybe the bootloader never really burns even when it says its successful?  Is there a way to wipe the bootloader just to make sure I really am burning a new one?  This of course is another question but would like to know if the procedure above sounds normal to you or not




CrossRoads

I don't normally press the reset  button at all (or include one on boards even).
The ICSP programmer connected to the ICSP header should take control of the reset pin.

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.

pcfr33k

#2
Oct 10, 2012, 05:59 am Last Edit: Oct 10, 2012, 06:02 am by pcfr33k Reason: 1
I don't use the ICSP header.  I connect the pins to 13,12,11 etc!!

CrossRoads

"I connect the pins to 13,12,11"

And to Reset? No?  Maybe that's the problem.
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.

pcfr33k

#4
Oct 10, 2012, 06:08 am Last Edit: Oct 10, 2012, 06:11 am by pcfr33k Reason: 1
There is a reset Pin # 1 and another reset pin on the opposite side don't remember the pin # but I tried it that way to. UNless I am connecting it wrong?

So you don't do anything for Pin #1 and connect only the reset pin on the opposite side of the chip to the RST or equivalent on the ICSP board?

EDITED:

http://www.arduino.cc/en/Main/Standalone

CrossRoads

"There is a reset Pin # 1 and another reset pin on the opposite side don't remember the pin # but I tried it that way to."
Opposite side of what?
You said you had a breadboard - is that where the reset button is you are talking about?

"RST or equivalent on the ICSP board"
You are using an Uno or something as the programmer?
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.

pcfr33k

Opposite side of Pin # 1 on the ATmega328.

The reset button is on the breadboard for Pin #1

I am using the USBtinyISP and an Arduino UNo R3 without the CHip of course.

I have connected the other reset pin to RST or equivalent  name to the ICSP controllers with the same result.  I have to hold down the reset button on the breadboard to burn it successfully!!



CrossRoads

Opposite of pin #1 being pin #28? That is not a reset pin, that is AnalogInput5 pin.

I don't know what's going on with your reset, doesn't sound like something is correctly connected.
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.

pcfr33k

When I say opposite side I did not mean directly opposite the pin I meant the other side!!  I just don't have the pin # with me

WizenedEE

would these be helpful?

ICSP pinout (6 pin is the one arduino uses)


There is only one reset pin on each one, so if you try to take an alternate path... I don't see how.

pcfr33k

#10
Oct 10, 2012, 06:44 am Last Edit: Oct 10, 2012, 06:47 am by pcfr33k Reason: 1
I am using the Tiny USB for now.  I did use the header.  The RST on the header of the ISP should be connected to the reset pin #1 on the ATmega328 on the breadboard correct?

I have done this and it fails every time!!

If I use the reset switch on the breadboard from pin # 1 and leave it depressed the entire time I burn a bootloader without any issues what so ever.

Ok so there is no reset pin on the right side of the ATmega328 so I connect RST from the ISP header to pin #1 right side of the ATmega328?

Doing it this way does not work for me and I cannot figure out why?  MOSI/MISO/RST/SCK/Vcc and Gnd connections are done correctly but unless I have a reset switch on Pin #1 of the Atmega328 on the breadboard and don't depress the button the entire time it will fail!!

#11
Oct 10, 2012, 06:58 am Last Edit: Oct 10, 2012, 07:00 am by Tribalmonkey Reason: 1
Post a picture of your assembled breadboard, connected to the programmer.

You may have made an error in reading the fritz diagram, like you did with the DTR capacitor.

pcfr33k

Pics

Coding Badly


The gray wire is not correct.  You have essentially wired it to nothing special.  It should be connected to the RESET pin.

pcfr33k

I tired it both ways grey pin where it is now and grey pin to Pin # 1 of the ATmega328 same results

Go Up