When following our AVR Programming tutorial video, many people are getting the above error message when trying to program the device. This is the error in question:

Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xc0, expected 0x00

There are two main things that could be causing this error, so lets have a look at how we can resolve it

1. Check your connections

If you are getting this error, it could be to do with a faulty connection, if either the MOSI (Master Out Slave In) or MISO (Master In Slave Out) lines are left unconnected, this could lead to this problem. As well as checking that these lines are connected to the correct pins of the microcontroller, it is also good to check that the connectors and ribbon cable which you are using are not faulty.

2. Check the ISP clock frequency

The other main reason which you could be getting this error, is because the isp clock speed is set too high. The isp clock frequency must be less than approximately one quarter of the clock speed of your device. The default setting is 1Mhz, but this is too high for a chip using the internal 1Mhz clock.

In order to change the ISP clock frequency, you need to access the tool settings menu by clicking the hammer icon:

Tool settings icon

You can them use the slider to reduce the ISP clock frequency so that it is less than a quarter of the speed of your device.

Clock Speed Slider

There are no comments.

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">