2011-12-30 01:34 PM
I am programming and debugging an STM32L (STM32L151C6U6) via SWD. I can successfully reuse pins PB3 and PB44, and I can successfully set PA15 (JTAG TMI) to be GPIO input, but when I set it to be an output the SWD interface fails (or the core crashes, not sure). I can't find any errata or information on this topic, but it is a major roadblock because I'm out of GPIO and this is my USB pullup! Any advice appreciated.
#stm32l-jtag-swd-gpio-reuse2011-12-31 12:00 AM
I had a very similar problem recently. One of our boards had a solder bridge. As soon as the start-up code set PA15 as an output, we lost SWD capability.
It was quite a puzzler. PA15 was unused on this board, so I didn't even consider a solder bridge. It turned out my start-up code, borrowed from another board, was setting effectively setting PA15 as an output. My co-developer didn't ''know'' the board details, and pointed me in the right direction.2012-01-03 10:39 AM
And that is exactly the same problem I found on my board over the weekend, too!
2012-10-15 04:57 PM
I had a similar problem with PB2 (BOOT1). If I tried to use it as a GPIO, then it crashed the JTAG debugger. I had spare I/O so I just moved it. The errata mentions a similar problem with PB4 (JTNRST), so I figured this was just another pin exhibiting the same behavior.
2015-01-22 12:57 AM
Hello,
did You find solution to this issue?I face the problem:when I remap PA15 and use it as GPIO Output Push-Pull I loose my SWD interface.