After Writing a code and compilte it then getting HEX File :
by using AVR Studio Software :
1- TOOLS → PROGRAM AVR → AUTO CONNECT.
2- I select STK500 as PLATFORM , AUTO as PORT option then I
click CONNECT .
then it show window with title : STK500 in ISP mode with ATMega 32
.
===================
At the Status Box :
Detecting on ‘Auto’…
STK500 with V2 firmware found on COM5:
Getting revisions… HW: 0x02, SW Major: 0x02, SW Minor: 0x0a …
OK
Getting isp parameter… SD=0x01 … OK
====================
Then :
3- in PROGRAM Tap : I speciy HEX File at FLASH .
4- in AUTO Tap : I mark : Program FLASH and Verify FLASH , then I
click at START .
it shows at Status box :
====================
Getting isp parameter… SD=0x01 … OKOK
Reading FLASH input file… OK
Setting mode and device parameters… OK!
Entering programming mode… FAILED!
Leaving programming mode… OK!
====================
and show Message :
++++++++++++++++++++++++++++++++++++++++++++++++
ISP Mode Error
A problem occurred when executing the command. Make sure that
you are using the correct
programming method. Current mode is ISP. See the command
output for more info.
The troubleshooting section in the help system contains more
information on what may
have caused the problems. To open the help system, click the Help
button below.
Quick Tips: Verify that the device is placed in the correct socket, and
that the ISP
cable is properly connected. Check that the ISP programming
frequency specified on the
‘Main’ page is well below 1/4 of the clock frequency of the device.
Extra precaution
should be made when using the CKDIV fuse and/or Clock Prescaler
Register (CLKPR) on
parts supporting this.
+++++++++++++++++++++++++++++++++++++++++++++++++
What should I do ???