Go Down

Topic: Trying to Burn Bootloader using Arduino as ISP (Read 5668 times) previous topic - next topic

n00b

Ok, so Iv got my ATMEGA168 Duemilanove hooked up to my breadboard with a ATMEGA168 chips like so....



Click on examples>ArduinoISP and then select the right parallel and serial programmer to load the sketch onto the Duemilanove.

Then

Switch to programer>Arduino as ISP and hit burn bootloader........but get
Code: [Select]
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.


Double checked my connections, but nothing out of place?

HeyYeah

#1
Feb 22, 2012, 10:33 am Last Edit: Feb 22, 2012, 10:43 am by HeyYeah Reason: 1
What board have you selected in Tools-->Boards?
If you haven't edited the entry in "/hardware/arduino/boards.txt", an external crystal is expected (mostly 16MHz).


And use the IDE 0022, I had problems with 1.0 , see: http://arduino.cc/forum/index.php/topic,92925.0.html

edit: the resistor is a 10k, the capacitors both 22pF.

n00b

#2
Feb 22, 2012, 04:52 pm Last Edit: Feb 22, 2012, 05:04 pm by n00b Reason: 1
I selected "Arduino diecimila or duemilanove w/ATMEGA168" in Tools-->Boards?

Thank you, is 16MHz OK with ATMEGA168?
(and how would I wire a crystal with 3 pins, just scrap the caps and ground the center pin?)

HeyYeah

#3
Feb 22, 2012, 05:16 pm Last Edit: Feb 22, 2012, 05:21 pm by HeyYeah Reason: 1
boards.txt:
Code: [Select]
diecimila.build.f_cpu=16000000L

--> 16MHz is o.k. with standard fuses and bootloader.

I think you mean that sort of oscillators:



These ones have integrated capacitors, so you don't need the two 22pF.
Connect the two outer pins to pin 9 and 10 at the Atmga and the pin in the middle to ground.

n00b

Still no luck.

Using 0022
Quote
***failed; 
avrdude: verification error, first mismatch at byte 0x0000
         0x3f != 0x00
avrdude: verification error; content mismatch


using 1.0
Quote
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.

JoeO


smeezekitty


Still no luck.

Using 0022
Quote
***failed; 
avrdude: verification error, first mismatch at byte 0x0000
         0x3f != 0x00
avrdude: verification error; content mismatch


using 1.0
Quote
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.


I don't think version 1.0 works at all for programming another chip.
As for the verification error, make sure the wires have a solid connection and are reasonably short.
I had a verification error when using 10 foot leads and a marginal connection :)
Avoid throwing electronics out as you or someone else might need them for parts or use.
Solid state rectifiers are the only REAL rectifiers.
Resistors for LEDS!

n00b

#7
Feb 25, 2012, 01:01 am Last Edit: Feb 25, 2012, 01:06 am by n00b Reason: 1
Triple checked conections, used the last 3 IDEs too (0021,0022,0023).....still no joy?



(photo has a mistake thats been corrected: ground rail pin was in +v. but is in the right place now)

any recommendations for cheap programmers, as this is really not working for me on a breadboard!

HeyYeah

http://thomaspfeifer.net/einfaches_atmel_programmierkabel.htm
...if you have an old LPT-cable.
Change pinning on the LPT-plug to make it compatible with STK200/300.

BUT: Be VERY careful with this programmer, you can brick your LPT-Interface with wrong wiring.

You can also look after a cheap programmer like this one:
http://shop.myavr.com/Programmer/mySmartUSB%20light.htm?sp=article.sp.php&artID=200006

n00b

Got a mac, so the LPT-plug is not a option.

Would also be nice to know why its not working, and if this means any of the Arduino ISP shields will be useless too?

dannable

I'm using a similar arrangement to burn the bootloader albeit using Windows XP (and 0.22). However, the difference is that I have a 124 ohm resistor between the Duemilanove reset and 5volts. Prior to that I just kept getting errors.

It also works with the Uno...
Beginners guide to using the Seeedstudio SIM900 GPRS/GSM Shield

Jayraj

I think solution to your problem in signature lies in the avrdude.config file which is in the mainfolder of your arduino software change the signature of Atmega168 in this file to 0F and it will work fine.

CrossRoads

Have you looked at Optiloader yet?
https://github.com/WestfW/OptiLoader
Connect Master D10 to slave reset pin, D11 to D11, D12 to D12, D13 to D13, and power, ground.
Need a crystal on the slave too.
See the video at the end of this thread
http://arduino.cc/forum/index.php/topic,68183.0.html
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.

n00b

#13
Feb 28, 2012, 09:26 pm Last Edit: Feb 28, 2012, 09:29 pm by n00b Reason: 1

I think solution to your problem in signature lies in the avrdude.config file which is in the mainfolder of your arduino software change the signature of Atmega168 in this file to 0F and it will work fine.


how do I find this file and edit it?


Have you looked at Optiloader yet?
https://github.com/WestfW/OptiLoader

Will check this out now, WestfW has yet to steer me wrong!

Go Up