Page 1 of 1

Disable JTAG

Posted: Wed Aug 14, 2024 2:52 pm
by DrBanana
In previous core following code was needed

afio_cfg_debug_ports(AFIO_DEBUG_SW_ONLY);

but in new core, it doesn't recognize, how do I disable it ?

Re: Disable JTAG

Posted: Wed Aug 14, 2024 3:42 pm
by GonzoG
Which core you're talking about ??
In ST core you don't need to disable JTAG. It's disabled by default.

Re: Disable JTAG

Posted: Wed Aug 14, 2024 3:46 pm
by fpiSTM
GonzoG wrote: Wed Aug 14, 2024 3:42 pm In ST core you don't need to disable JTAG. It's disabled by default.
Disable only if the pin is used ;)
https://github.com/stm32duino/Arduino_C ... map.c#L281
https://github.com/stm32duino/Arduino_C ... nfig.h#L22

Re: Disable JTAG

Posted: Wed Aug 14, 2024 6:11 pm
by DrBanana
GonzoG wrote: Wed Aug 14, 2024 3:42 pm In ST core you don't need to disable JTAG. It's disabled by default.
fpiSTM wrote: Wed Aug 14, 2024 3:46 pm Disable only if the pin is used
So should I disable by calling(pin_DisconnectDebug) or just start using pinMode and it will be called internally ?

Re: Disable JTAG

Posted: Wed Aug 14, 2024 6:47 pm
by fpiSTM
It will be called internally.