UK
Offline
God Member
Karma: 0
Posts: 502
|
 |
« on: February 22, 2012, 01:32:06 am » |
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 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
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #1 on: February 22, 2012, 04:33:18 am » |
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.htmledit: the resistor is a 10k, the capacitors both 22pF.
|
|
|
|
« Last Edit: February 22, 2012, 04:43:06 am by HeyYeah »
|
Logged
|
|
|
|
|
UK
Offline
God Member
Karma: 0
Posts: 502
|
 |
« Reply #2 on: February 22, 2012, 10:52:15 am » |
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
Newbie
Karma: 0
Posts: 10
|
 |
« Reply #3 on: February 22, 2012, 11:16:25 am » |
boards.txt: 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
God Member
Karma: 0
Posts: 502
|
 |
« Reply #4 on: February 23, 2012, 08:41:52 am » |
Still no luck. Using 0022 ***failed; avrdude: verification error, first mismatch at byte 0x0000 0x3f != 0x00 avrdude: verification error; content mismatch
using 1.0 avrdude: Yikes! Invalid device signature. Double check connections and try again, or use -F to override this check.
|
|
|
|
|
Logged
|
|
|
|
|
Upstate NY
Offline
Full Member
Karma: 2
Posts: 172
|
 |
« Reply #5 on: February 23, 2012, 11:02:53 am » |
How about a picture of your setup?
|
|
|
|
|
Logged
|
|
|
|
|
Washington
Offline
God Member
Karma: 22
Posts: 720
Firefox & Arduino rocks
|
 |
« Reply #6 on: February 23, 2012, 11:09:00 am » |
Still no luck. Using 0022 ***failed; avrdude: verification error, first mismatch at byte 0x0000 0x3f != 0x00 avrdude: verification error; content mismatch
using 1.0 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 
|
|
|
|
|
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
God Member
Karma: 0
Posts: 502
|
 |
« Reply #7 on: February 24, 2012, 07:01:35 pm » |
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
|
|
|
|
|
|
|
UK
Offline
God Member
Karma: 0
Posts: 502
|
 |
« Reply #9 on: February 25, 2012, 01:51:26 pm » |
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
Full Member
Karma: 6
Posts: 211
Quick, chuck it in the bin before the boss finds out...
|
 |
« Reply #10 on: February 25, 2012, 02:37:12 pm » |
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
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 9
|
 |
« Reply #11 on: February 27, 2012, 09:45:46 am » |
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
Brattain Member
Karma: 270
Posts: 17059
Available for Design & Build services
|
 |
« Reply #12 on: February 27, 2012, 11:18:20 am » |
Have you looked at Optiloader yet? https://github.com/WestfW/OptiLoaderConnect 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
|
|
|
|
|
UK
Offline
God Member
Karma: 0
Posts: 502
|
 |
« Reply #13 on: February 28, 2012, 03:26:44 pm » |
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? Will check this out now, WestfW has yet to steer me wrong!
|
|
|
|
« Last Edit: February 28, 2012, 03:29:29 pm by n00b »
|
Logged
|
|
|
|
|
|