Hello everybody, working on a basic problem already several days. i bought a new micro controller Atmega32-16PU and i'm trying to program it using AVRISP MKII programmer.
Till now i did the following steps:
1) SETTING THE HARDWARE CONNECTION
The connection scheme which i used is a following
I'm using a breadboard and i followed the connection scheme posted by Mathematics!)
On the chip I have
For Atmega32 chip
MOSI at pin 6 on chip
MISO at pin 7 on chip
SCK at pin 8 on chip
reset bar is at pin 9 on chip
VCC is at pin 10 on chip
ground is at pins 11 and 31 on chip
AVCC is at pin 30 on chip
For mkII programmer
The hole on the programmers connector nearest to the triangle (i.e right under it)
is hole one which is MISO
On the same row as MISO we have SCK then RESET
Next row has VCC for programmer , followed by MOSI then ground for programmer.
The MISO , SCK , MOSI for chip and programmer are connected directly to one another. The VCC , and ground of the programmer is connected to the solderless breadboards +/- strip respectfully.
I'm powering the board using a 9V battery which is connected a 5v regulator.
A 222uF electrolitic capacitor + leg is connected to the 9V input of Regulator, the -leg to the ground of the regulator.
A 0.1uF ceramic Capacitor connected to the - leg of the regulator and the 5V output of the regulator.
The chips VCC and AVCC are connected by a wire and then connected to the + strip.
The chips ground and Aground is connected by a wire and then connected to the - strip.
The chips reset is connected to the VCC of the chip by a 7 kohm resistor.
The programmers reset pin hole is connected to the reset of the chip.
*Both Green leds on, on the avrisp mk2 programmer
2) INSTALLING WINAVR VERSION 20100110
3) INSTALLING AVR STUDIO VERSION 4.19
4) SETTING CONNECTION IN AVR STUDIO - i chose Tools>Program AVR>Connect
in the next window i chose platform AVRISP mkii and Port : USB
I tried to read the signature but it wrote me:"Warning: Signature doesn't match the selected device" . Additionally it wrote me the following:
Setting mode and device parameters.. OK!
Entering programming mode.. FAILED!
Leaving programming mode.. OK!
5) I tried to interface the Atmega32 also with avrdude , using the following code:
"avrdude -c avrispmkII -p m32"
it wrote me the following:
"avrdude: ser_open(): can't open device "\\.\com1":The system cannot find the file specified.
6) i tried to connect my AVRISP mk2 programmer to another microcontroller atmega8 - work great!
7) I tried with a new Atmega32 - didn't work.
7) I've searched already quite a lot in different forums for the solution for my exact case,wasn't lucky to find one yet.
I'm new to this , I have a completely new Atmega32 untouched and quite stuck and not sure how to further proceed, appreciate any help!
Till now i did the following steps:
1) SETTING THE HARDWARE CONNECTION
The connection scheme which i used is a following
On the chip I have
For Atmega32 chip
MOSI at pin 6 on chip
MISO at pin 7 on chip
SCK at pin 8 on chip
reset bar is at pin 9 on chip
VCC is at pin 10 on chip
ground is at pins 11 and 31 on chip
AVCC is at pin 30 on chip
For mkII programmer
The hole on the programmers connector nearest to the triangle (i.e right under it)
is hole one which is MISO
On the same row as MISO we have SCK then RESET
Next row has VCC for programmer , followed by MOSI then ground for programmer.
The MISO , SCK , MOSI for chip and programmer are connected directly to one another. The VCC , and ground of the programmer is connected to the solderless breadboards +/- strip respectfully.
I'm powering the board using a 9V battery which is connected a 5v regulator.
A 222uF electrolitic capacitor + leg is connected to the 9V input of Regulator, the -leg to the ground of the regulator.
A 0.1uF ceramic Capacitor connected to the - leg of the regulator and the 5V output of the regulator.
The chips VCC and AVCC are connected by a wire and then connected to the + strip.
The chips ground and Aground is connected by a wire and then connected to the - strip.
The chips reset is connected to the VCC of the chip by a 7 kohm resistor.
The programmers reset pin hole is connected to the reset of the chip.
*Both Green leds on, on the avrisp mk2 programmer
2) INSTALLING WINAVR VERSION 20100110
3) INSTALLING AVR STUDIO VERSION 4.19
4) SETTING CONNECTION IN AVR STUDIO - i chose Tools>Program AVR>Connect
in the next window i chose platform AVRISP mkii and Port : USB
I tried to read the signature but it wrote me:"Warning: Signature doesn't match the selected device" . Additionally it wrote me the following:
Setting mode and device parameters.. OK!
Entering programming mode.. FAILED!
Leaving programming mode.. OK!
5) I tried to interface the Atmega32 also with avrdude , using the following code:
"avrdude -c avrispmkII -p m32"
it wrote me the following:
"avrdude: ser_open(): can't open device "\\.\com1":The system cannot find the file specified.
6) i tried to connect my AVRISP mk2 programmer to another microcontroller atmega8 - work great!
7) I tried with a new Atmega32 - didn't work.
7) I've searched already quite a lot in different forums for the solution for my exact case,wasn't lucky to find one yet.
I'm new to this , I have a completely new Atmega32 untouched and quite stuck and not sure how to further proceed, appreciate any help!