1
\$\begingroup\$

I am trying to make an Arduino Uno act as an external programmer for an ATmega32 and ATmega 8. I couldn't succeed, I used connections as given at Using an Arduino as an AVR ISP and Arduino Uno as an ISP programmer and followed the steps.

I used an external 12MHz crystal with the chip to be programmed then I connected XTAL2 of Arduino Uno with XTAL1 of chip to be programmed. The programmer is working but it's not showing the proper device ID. Can anybody help me?

\$\endgroup\$
  • \$\begingroup\$ Copy in the full output of avrdude \$\endgroup\$ – jippie May 24 '13 at 7:03
  • \$\begingroup\$ Please add a picture of your setup. \$\endgroup\$ – jippie May 24 '13 at 7:13
2
\$\begingroup\$

Your clock setup sounds very odd. If you have an external crystal already, you should not connect anything but that crystal to the XTAL pins.

There are some different cases of “not showing proper device ID”:

  • If it shows a sequence of plausible hex digits that just are not the device ID of the device you’re programming, search in avrdude.conf for what device ID they DO represent. Sometimes it’s just a minor variation of the device you thought you had.
  • As a special case, if you’re getting the device ID for an ATmega328p, avrdude was actually talking to the MCU in your Arduino, not the target MCU. You need to disable auto-reset on your Arduino.
  • If you’re getting a value like 0x00 0x00 0x00 or 0xFF 0xFF 0xFF, your connections are not working properly yet.
\$\endgroup\$
  • \$\begingroup\$ i have no used ext crystal,when i wired it with arduino \$\endgroup\$ – yogece May 25 '13 at 13:19
  • \$\begingroup\$ Oh. You wrote above “I used an external 12MHz crystal”, but what you meant was that you did not use it during programming. I’m not confident that borrowing the clock of your Arduino this way works. When I use generated clocks, I use a much slower PWM signal. The alternative would be to keep using your external crystal. \$\endgroup\$ – microtherion May 25 '13 at 14:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.