2011-09-27 01:58 AM
Hi,
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 ? Thanks.2011-09-27 11:16 AM
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.