Showing results for 
Search instead for 
Did you mean: 

Disabel JTAG

Associate II
Posted on September 27, 2011 at 10:58


I am using STM32 discovery board.

I would like to use PORTB4 as GPIO, should i disable JTAG?

If I disable JTAG, can i reprogrem the boad ?


Posted on September 27, 2011 at 20:16

It uses SWD to program the board. You should be able to remap SWD/JTAG function off the pins in your application code. You should be able to use the BOOTx pins to prevent your code running, and thus provide unfettered access to SWD/JTAG for programming the STM32. You should probably provide a GPIO check *before* remapping the pin(s) so you can break out of this code and make it easier to debug/reprogram without having to play with the BOOTx pins.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..