Pages: 1 [2]   Go Down
Author Topic: bootloader problem with ATmega328P  (Read 1203 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 439
Posts: 23731
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

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

UK
Offline Offline
Faraday Member
**
Karma: 92
Posts: 3969
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Why not visit my eBay shop? http://stores.ebay.co.uk/Majenko-Technologies
Replacement for the Arduino IDE: UECIDE - Proper serial terminal, graphing facilities, plugins, overhauled internals.
Java isn't bad in itself, but it has enabled morons to write programs.

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 106
Posts: 6373
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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...
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 439
Posts: 23731
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

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.


* Duemilanove_USBAVR.jpg (193.24 KB, 858x595 - viewed 9 times.)
« Last Edit: June 24, 2012, 04:37:21 pm by CrossRoads » 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: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

UK
Offline Offline
Faraday Member
**
Karma: 92
Posts: 3969
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Why not visit my eBay shop? http://stores.ebay.co.uk/Majenko-Technologies
Replacement for the Arduino IDE: UECIDE - Proper serial terminal, graphing facilities, plugins, overhauled internals.
Java isn't bad in itself, but it has enabled morons to write programs.

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.


* boot.bmp (698.72 KB, 440x542 - viewed 9 times.)
Logged

Pages: 1 [2]   Go Up
Jump to: