Pages: [1]   Go Down
Author Topic: Trying to Burn Bootloader using Arduino as ISP  (Read 4099 times)
0 Members and 1 Guest are viewing this topic.
UK
Offline Offline
God Member
*****
Karma: 0
Posts: 529
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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

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.
« Last Edit: February 22, 2012, 04:43:06 am by HeyYeah » Logged

UK
Offline Offline
God Member
*****
Karma: 0
Posts: 529
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?)
« Last Edit: February 22, 2012, 11:04:39 am by n00b » Logged

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

boards.txt:
Code:
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.
« Last Edit: February 22, 2012, 11:21:36 am by HeyYeah » Logged

UK
Offline Offline
God Member
*****
Karma: 0
Posts: 529
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Upstate NY
Offline Offline
Full Member
***
Karma: 2
Posts: 183
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How about a picture of your setup?
Logged

Washington
Offline Offline
God Member
*****
Karma: 30
Posts: 779
Firefox & Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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!

UK
Offline Offline
God Member
*****
Karma: 0
Posts: 529
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
« Last Edit: February 24, 2012, 07:06:00 pm by n00b » Logged

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

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
Logged

UK
Offline Offline
God Member
*****
Karma: 0
Posts: 529
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Leeds, England
Offline Offline
Sr. Member
****
Karma: 8
Posts: 417
Quick, chuck it in the bin before the boss finds out...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Beginners guide to using the Seeedstudio SIM900 GPRS/GSM Shield

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

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

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

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
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
God Member
*****
Karma: 0
Posts: 529
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
« Last Edit: February 28, 2012, 03:29:29 pm by n00b » Logged

Pages: [1]   Go Up
Jump to: