Go Down

Topic: bootloader problem with ATmega328P (Read 1 time) previous topic - next topic

CrossRoads

Need to get yourself an AVR ISP programmer.
I use this one, works great
http://www.mdfly.com/index.php?main_page=product_info&cPath=5&products_id=415

There are many others also.
http://www.sparkfun.com/products/9825
https://www.adafruit.com/products/462
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.

majenko

Quote
majenko, i have only one board i.e. Duemilanove. I am not able to upload the sketch onto the duemilanove as i'm getting the avrdude error message stated above.


If you disconnect everything, can you upload the sketch?
Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

westfw

Quote
i short circuited my old chip due to carelessness.
I'm using a Arduino Duemilanove.

The "burn bootloader" process that most people are using and talking about requires a WORKING arduino to act as the "device programmer."  You can't just stick a blank 328P in an Arduino board and burn the bootloader; you have to have the blank in a suitable "target" board, and then have something else to be working as the programmer.

Things that can be a "target":

  • Arduino (or compatible) board with blank chip.

  • Protoboard with "minimal" circuitry.

  • Assorted "programmer shields"



Things that can be a "programmer":

  • Working Arduino with ArduinoISP sketch

  • Working Arduino with OptiLoader sketch

  • Commercial chip programmer like USBTINYISP or USBASP.

  • modified FTDI chip in "bitbang" configuration (requires soldering)



It sounds a bit like you have one broken Arduino, one blank replacement chip, and no soldering capability.  That's probably not a good place to be...

CrossRoads

#18
Jun 24, 2012, 11:33 pm Last Edit: Jun 24, 2012, 11:37 pm by CrossRoads Reason: 1
Find a friend with a soldering iron and put 4 pins in the X3 socket.
Then program a bootloader using the geocities link, plug on 4 jumpers, and program away.
Or, get yourself a dedicated programmer, convince yourself it is a needed tool for  future projects!

Here you can see my Duemilanove with the 4 pins sticking up, and the MDFLY programmer connected to the ICSP pins.

On the breadboard is a '1284 chip wired up as a big duemilanove.
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.

daveitsme007

I have only one microcontroller. that is the new one. Can I use arduino as ISP now?
If not, my friend has an ATmega8, I can borrow it from him.
What shall i do?

daveitsme007

i would prefer to bootloading my microcontroller for free, not buying anything else.

daveitsme007

westfw, so shall i ask my friend to give me his ATmega8 for bootloading?

majenko

You require one working Arduino or similar, complete with bootloader.

This needs to have the ArduinoISP sketch loaded on to it.

You then use that to put the bootloader on the new chip.

You cannot do it with the new chip alone.

If your friend's atmega8 has an arduino bootloader on it and can accept the ArduinoISP sketch, then yes it should be possible to use that as a programmer if you can set up the right circuitry around it.
Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

daveitsme007

Ya, I took my friends ATmega8 and i was able to upload the arduino ISP sketch. Thanks. But I'm still facing some problems.
Let me tell you what i have done. I don't have a 16MHz oscillator, so i had to use the setup below(attached). I made all the connection first. Connected the arduino to laptop, uploaded the arduino ISP sketch. It was successfully uploaded. Then i changed the board to Arduino Dualanimallove with ATmega 328. Changed the programmer to arduino as isp and then clicked burn bootloader.
And I am getting this error: Expected signature for ATMEGA328P is 1E 95 0F Double check chip, or use -F to override this.
I googled a little about this problem and found out i need to change the signature in avrdude.config from 0x1e 0×95 0x0F to 0x1e 0×95 0×14. But even this didn't work out for me, i got the error: Expected signature for ATMEGA328P is 1E 95 14 Double check chip, or use -F to override this.

Go Up