Offline
Newbie
Karma: 0
Posts: 14
|
 |
« on: January 27, 2013, 04:42:45 am » |
When I try to communicate to the microcontroller i get this error: ~/avrdude-5.11.1$ sudo avrdude -c avrisp -p atmega32 -P /dev/ttyACM0
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x000000 avrdude: Yikes! Invalid device signature. Double check connections and try again, or use -F to override this check.
avrdude done. Thank you.
What may be the problem?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 14
|
 |
« Reply #1 on: January 27, 2013, 07:38:15 am » |
Could the problem be related to the fact that the ATMega32L isn't using any external clock?
|
|
|
|
|
Logged
|
|
|
|
|
the land of sun+snow
Offline
Edison Member
Karma: 80
Posts: 2121
|
 |
« Reply #2 on: January 27, 2013, 09:50:22 pm » |
Are you trying to burn the bootloader into the 32 chip here? Did you first upload the ArduinoISP sketch into the UNO chip? Did you then select the proper board when burning the bootloader? Do you have all the proper connections between boards?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 14
|
 |
« Reply #3 on: January 28, 2013, 12:32:58 pm » |
Thank you for your help. I've put a 120 Ohm resistor between the Arduino Reset and GND, but it needed a 10 uF capacitor instead of it. Now I see the heartbeat LED powered on. Now I get this error: sudo avrdude -c avrisp -p atmega32 -P /dev/ttyACM0 avrdude: stk500_getsync(): not in sync: resp=0xe0
avrdude done. Thank you.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 14
|
 |
« Reply #4 on: January 28, 2013, 12:48:50 pm » |
If I try to specify the baud rate I get this: sudo avrdude -c avrisp -p atmega32 -b 19200 -P /dev/ttyACM0
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.12s
avrdude: Device signature = 0x000000 avrdude: Yikes! Invalid device signature. Double check connections and try again, or use -F to override this check.
avrdude done. Thank you.
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15314
Measurement changes behavior
|
 |
« Reply #5 on: January 28, 2013, 12:55:03 pm » |
Thank you for your help. I've put a 120 Ohm resistor between the Arduino Reset and GND, but it needed a 10 uF capacitor instead of it. Now I see the heartbeat LED powered on. In the future if you want to use a resistor to defeat auto-reset it has to wire between +5V and reset, a capacitor wires from reset to ground as you found out. Either method works. Funny thing is I've used arduinoISP sketch quite a bit recently on an older Duem board and have never had to defeat the auto-reset to have it function. It's a timing thing I know but I wonder what the variations are that make it required for some but not for others? Actually my Duem has the optiboot bootloader on it so it thinks it's a Uno board and has to be selected as such to upload to it. Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 14
|
 |
« Reply #6 on: January 28, 2013, 01:25:42 pm » |
I suppose the problem is that Arduino cannot communicate to the ATMega because of the signature being 0. Could the lack of an external clock cause the problem?
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15314
Measurement changes behavior
|
 |
« Reply #7 on: January 28, 2013, 01:36:20 pm » |
I suppose the problem is that Arduino cannot communicate to the ATMega because of the signature being 0. Could the lack of an external clock cause the problem?
Yes, if the target chip has had it's fuse settings change in the past to work with an external clock source that would prevent it from working. Lefty
|
|
|
|
|
Logged
|
|
|
|
|
the land of sun+snow
Offline
Edison Member
Karma: 80
Posts: 2121
|
 |
« Reply #8 on: January 28, 2013, 02:38:18 pm » |
Thank you for your help. I've put a 120 Ohm resistor between the Arduino Reset and GND, but it needed a 10 uF capacitor instead of it. Now I see the heartbeat LED powered on. Now I get this error: sudo avrdude -c avrisp -p atmega32 -P /dev/ttyACM0 avrdude: stk500_getsync(): not in sync: resp=0xe0
avrdude done. Thank you.
You didn't answer any of my questions. Besides those, which target board did you select?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 14
|
 |
« Reply #9 on: January 28, 2013, 03:47:44 pm » |
Are you trying to burn the bootloader into the 32 chip here? Did you first upload the ArduinoISP sketch into the UNO chip? Did you then select the proper board when burning the bootloader? Do you have all the proper connections between boards?
I'm sorry I didn't answer before. I've uploaded successfully the ArduinoISP sketch. The connections are ok, I've checked many times. What do you mean by saying "proper board"?
|
|
|
|
|
Logged
|
|
|
|
|
the land of sun+snow
Offline
Edison Member
Karma: 80
Posts: 2121
|
 |
« Reply #10 on: January 28, 2013, 03:59:30 pm » |
I meant which target board did you select in the Arduino IDE? I don't see one specifically for the 32L chip.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 14
|
 |
« Reply #11 on: January 28, 2013, 04:12:33 pm » |
Since I am not uploading anything to the board, but I'm just trying to communicate to it, I haven't selected anything.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 14
|
 |
« Reply #12 on: January 28, 2013, 04:20:59 pm » |
Yes, if the target chip has had it's fuse settings change in the past to work with an external clock source that would prevent it from working.
Lefty
I don't have any 16 MHz oscillator. Will I have any problems by using a different frequency (14 or 22)?
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15314
Measurement changes behavior
|
 |
« Reply #13 on: January 28, 2013, 04:24:06 pm » |
Yes, if the target chip has had it's fuse settings change in the past to work with an external clock source that would prevent it from working.
Lefty
I don't have any 16 MHz oscillator. Will I have any problems by using a different frequency (14 or 22)? Not for just the purpose to burn a sketch or a bootloader onto the target. However the frequency does need to be correct for the bootloader to work with the arduino IDE as the baud rate will not be correct if not clocked at the speed the specific bootloader was created to work at. Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 14
|
 |
« Reply #14 on: January 28, 2013, 04:39:04 pm » |
Not for just the purpose to burn a sketch or a bootloader onto the target. However the frequency does need to be correct for the bootloader to work with the arduino IDE as the baud rate will not be correct if not clocked at the speed the specific bootloader was created to work at.
Lefty
Do I have to use the two capacitors? If so, their capacitance has to be as said here (18 or 22 pF)?
|
|
|
|
|
Logged
|
|
|
|
|
|