2008-07-17 11:25 PM
jtag communication failure
2011-05-17 03:21 AM
I'm using an STM32F103VBT6 in a new design in progress. I'm using Keil tools and ULINK2 emulator. Everything has been progressing, but all of a sudden I'm getting JTAG communcation failures, though it's been working fine for a while. this has happened on two different boards (our target hardware). What can cause the processor to stop jtag communication, and how can I recover? Thanks.
2011-05-17 03:21 AM
Hi dave2,
Do you have screenshot of the failure. May be this could be explained by : 1) Re-configuring JTAG pins (port A) to Standard GPIO or disabling them. 2) Entering low power modes ( Sleep, STOP or Standby) the connection will be lost automatically if debug features in low power mode are not enabled ( you can have a look of reference manual RM0008 : debug section) Cheers 😉 STOne-322011-05-17 03:21 AM
thanks for the quick response. At this point, I can't really do much to find the actual cause of the problem, since I have no way to re-program the processor. I normally use the ULINK2 to program the flash, but now that the jtag connection is dead, I can't re-program or even erase the flash. Seems like a catch-22 situation.
So, the question is whether there is some way to re-program the processor in my target hardware when jtag is dead? Or some other way to get around this issue? Thanks.2011-05-17 03:21 AM
thanks for the quick response. At this point, I can't really do much to find the actual cause of the problem, since I have no way to re-program the processor. I normally use the ULINK2 to program the flash, but now that the jtag connection is dead, I can't re-program or even erase the flash. Seems like a catch-22 situation.
So, the question is whether there is some way to re-program the processor in my target hardware when jtag is dead? Or some other way to get around this issue? Thanks.2011-05-17 03:21 AM
Dear dave2,
If you are using keil StarterKit, you can change the bootmode using Boot1 and boot0 jumpers to either RAM or System memory and then reset your STM32 micro and load again you Ulink connection with keil. It should work 🙂 Hope this trick is useful for you 🙂 Cheers, STOne-32 [ This message was edited by: STOne-32 on 14-01-2008 18:33 ]2011-05-17 03:21 AM
Thanks. That makes sense as a fix, but doesnt seem to help. I am working on my own target hardware, so I added a jumper on boot0, and tied it high so it should not be booting from flash. Unfortunately the ULINK2 is still claiming no JTAG Devices Found.
2011-05-17 03:21 AM
Thanks. That makes sense as a fix, but doesnt seem to help. I am working on my own target hardware, so I added a jumper on boot0, and tied it high so it should not be booting from flash. Unfortunately the ULINK2 is still claiming no JTAG Devices Found.
2011-05-17 03:21 AM
UPDATE: I tried the fix on my second board, and it fixed the problem! My first board must have a different issue, which I will look into separately. Thanks for the help and the fix.
2011-05-17 03:21 AM