Good morning all
Ok, so I bought myself an AVRISP MkII, did the board layout, purchased all the components and build the board. Installed AVR Studio5 and tried to connect to the target board.
When trying to read the device ID, I get this message:
Unable to enter programming mode. Please verify that the programmer is correctly attached to the target and that target power has been switched on. Also verify that the correct device and interface settings have been specified. Timestamp: 2011-08-13 08:46:47.059 Severity: ERROR ComponentId: 20100 StatusCode: 0 Programming session setup failed: TCF command: Device:startSession failed: Code:1 ,Service: ,Message from peer:Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xc0, expected 0x00
I've searched the forum and internet for this error and as far as I could understand, there might be problems win Studio5 and the suggestion is to roll back to Studio4. So I did, install Studio4 with all the SP I have.
Tried to connect and still does not work. I can read the target voltage, change the freq but whenever I try to read the fuse/lock bits I get a message
Setting mode and device parameters.. OK! Entering programming mode.. FAILED! Leaving programming mode.. OK!
The freq is set to 6.478 kHz, I've even tried lower freq with no different results.
I've updated the firmware of the MkII, the target voltage is 5.1V (this is what I read back into AVR Studio).
Here is the circuit diagram. DL2, DL5, R9, R8, SW1 and SW2 is not fitted.
The AVR ISP MkII lights lit up, the LED next to the USB connector is green as well as the LED next to the ISP cable.
What may be the reason why the ISP fails to connect to the target device?
This is my first attempt with an AVR ISP MkII, previously I've used a RS232 programmer with Atmega8's loaded with boot loaders.