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?

PeterJ
17.3k37 gold badges58 silver badges91 bronze badges
asked May 24, 2013 at 7:00
\$\endgroup\$
2
  • \$\begingroup\$ Copy in the full output of avrdude \$\endgroup\$ Commented May 24, 2013 at 7:03
  • \$\begingroup\$ Please add a picture of your setup. \$\endgroup\$ Commented May 24, 2013 at 7:13

1 Answer 1

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.
answered May 24, 2013 at 11:48
\$\endgroup\$
2
  • \$\begingroup\$ i have no used ext crystal,when i wired it with arduino \$\endgroup\$ Commented May 25, 2013 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\$ Commented May 25, 2013 at 14:58

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.