Hi all,
I’m trying to use the serial port version of Olimex’s AVR JTAG with an STK500 board (with ATMega16) and gcc development platform (20050214 release). I have successfully used the JTAG for a short time before and started using it again a few days back. I saw some issues when I recently started using it. It did not stop at the breakpoint specified and things like that. Using avarice, I played around with the bitrate and power-cycled my board a few times. While I was trying this, I noticed that the JTAG LED didn’t come back up anymore. Now when I try running avarice in debug mode, I see output similar to that underneath. Eventhough this is for the default bitrate, I’ve tried it with 500KHz, 250KHz and 125KHz also with similar results.
avarice -d --jtag /dev/ttyS0 :4242
AVaRICE version 2.3, Feb 10 2005 17:55:46
Defaulting JTAG bitrate to 1 MHz. Make sure that the target
frequency is at least 4 MHz or you will likely encounter failures
controlling the target.
JTAG config starting.
Attempting synchronisation at bitrate ff
command[S, 1]: 53 45 20 20
Out of sync, reponse was `fc’
command[S, 1]: 53 20 20
Out of sync, reponse was `fc’
command[S, 2]: 53 45 20 20
Out of sync, reponse was `fc’
command[S, 1]: 53 20 20
Out of sync, reponse was `fc’
command[S, 3]: 53 45 20 20
Out of sync, reponse was `fc’
command[S, 1]: 53 20 20
Out of sync, reponse was `fc’
Attempting synchronisation at bitrate fa
command[S, 1]: 53 45 20 20
Out of sync, reponse was `d7’
command[S, 1]: 53 20 20
Out of sync, reponse was `d7’
command[S, 2]: 53 45 20 20
Out of sync, reponse was `d7’
command[S, 1]: 53 20 20
Out of sync, reponse was `d7’
command[S, 3]: 53 45 20 20
Out of sync, reponse was `d7’
command[S, 1]: 53 20 20
Out of sync, reponse was `f7’
Attempting synchronisation at bitrate fe
command[S, 1]: 53 45 20 20
Out of sync, reponse was `72’
command[S, 1]: 53 20 20
Out of sync, reponse was `fe’
command[S, 2]: 53 45 20 20
Out of sync, reponse was `72’
command[S, 1]: 53 20 20
Out of sync, reponse was `fe’
command[S, 3]: 53 45 20 20
Out of sync, reponse was `72’
command[S, 1]: 53 20 20
Out of sync, reponse was `fe’
Attempting synchronisation at bitrate fd
command[S, 1]: 53 45 20 20
command[S, 1]: 53 20 20
response: 56 52 42 4F 4F 54 3F 3F
command[S, 2]: 53 45 20 20
command[S, 1]: 53 20 20
response: 56 52 42 4F 4F 54 3F 3F
command[S, 3]: 53 45 20 20
command[S, 1]: 53 20 20
response: 56 52 42 4F 4F 54 3F 3F
Attempting synchronisation at bitrate f4
command[S, 1]: 53 45 20 20
Out of sync, reponse was `fa’
command[S, 1]: 53 20 20
Out of sync, reponse was `fa’
command[S, 2]: 53 45 20 20
Out of sync, reponse was `fa’
command[S, 1]: 53 20 20
Out of sync, reponse was `fa’
command[S, 3]: 53 45 20 20
Out of sync, reponse was `fa’
command[S, 1]: 53 20 20
Out of sync, reponse was `fa’
Failed to synchronise with the JTAG ICE (is it connected and powered?)
Anyone have any idea as to what I’m doing wrong? Is my JTAG hosed? I’m not sure what I did to break it. I can detect the STK500 board through AVR Studio my COM port is fine but even AVR Studio can’t detect the JTAG.