Page 1 of 1

AVR ISP Programming problem

Posted: Thu Aug 04, 2011 10:49 pm
by Herath
Hi,
I got the development board for ATMega16 today. It works fine with the onboard code which is showing the current temperature read from a LM75.

And when I tried to write my own code on to the MCU, the whole thing shorted out and the PTC fuses were there to protect the hardware (Those fuses were very hot).

When I was checking the ISP headers on the board and the programmer, I could find the cause for the shorting. The demo board has +5V on the 2nd pin, while on the programmer I have 2nd pin connected to ground. :?

The following is the pin configuration i have on the programmer, [JTAG]
Image

And this is the pin configuration on the demo board.[ISP header]
Image

Now I am really screwed, I ordered another AVRISP, not anything with jtag in the name of it. :mrgreen:

Is there anyway to make this work?. Thanks. (I no longer have the 2nd pin on the programmer :oops: )

This is what I bought today. :cry:
http://cgi.ebay.com/ws/eBayISAPI.dll?Vi ... K:MEWNX:IT

I think that I am not going to be able to use JTAG debugging with this board. Since board has the ISP header, not the JTAG header.

Re: AVR ISP Programming problem

Posted: Thu Aug 04, 2011 11:59 pm
by Neo
I think that I am not going to be able to use JTAG debugging with this board. Since board has the ISP header, not the JTAG header.
Correct. That's the case. JTAG and ISP are two different interfaces. If your Dev. Board has ISP, better use an ISP programmer. As you said with ISP, it is not possible to debug.

Another option is to take the JTAG pins out of the chip and use your JTAG programmer. It is easy to do experiments when you have the debugging facility as a beginner. Read http://support.atmel.no/knowledgebase/a ... erface.htm
JTAG.gif
JTAG.gif (8.96 KiB) Viewed 5511 times
Here I found another very cheap AVR JTAG (looks good) - $15.99
http://cgi.ebay.com/AVR-USB-Emulator-de ... 0855238753

AVR ISP - $9.60
http://cgi.ebay.com/USB-ISP-Programmer- ... 0565308982

Re: AVR ISP Programming problem

Posted: Fri Aug 05, 2011 12:49 pm
by Herath
Thanks Neo. I tried connecting to the JTAG by manually soldering(By referring to the ATMega16 datasheet, and your diagram). But it looks like that the JTAG adapter is no longer working. The target board boots up normally when connected to the JTAG adapter. I am not sure if this is normal. But the AVRStudio does not detect the adapter. It detected the adapter first time i tried it and AVRStudio said that "there is no power for the target" (I did not have anything at the other end). Now it is not detecting anything.

So I am going to wait for the ISP adapter to arrive. Then I will try programming the broad again. I do not want to kill the board too. :mrgreen:

I will buy a proper development board later with both ISP and JTAG. The board I am having is just like a toy. Can't call it a development board.
Thanks again.

Re: AVR ISP Programming problem

Posted: Fri Aug 05, 2011 6:05 pm
by Neo
Based on symptoms. it looks like the JTAG is gone. However it would have been better if you could have a JTAG at the beginning stage.