Disable JTAG

Post here first, or if you can't find a relevant section!
Post Reply
DrBanana
Posts: 18
Joined: Thu Jun 10, 2021 3:02 pm

Disable JTAG

Post 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 ?
GonzoG
Posts: 453
Joined: Wed Jan 15, 2020 11:30 am
Answers: 32
Location: Prudnik, Poland

Re: Disable JTAG

Post by GonzoG »

Which core you're talking about ??
In ST core you don't need to disable JTAG. It's disabled by default.
fpiSTM
Posts: 1819
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 99
Location: Le Mans
Contact:

Re: Disable JTAG

Post 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
DrBanana
Posts: 18
Joined: Thu Jun 10, 2021 3:02 pm

Re: Disable JTAG

Post 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 ?
fpiSTM
Posts: 1819
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 99
Location: Le Mans
Contact:

Re: Disable JTAG

Post by fpiSTM »

It will be called internally.
Post Reply

Return to “General discussion”