Skip to main content
AGamb.4
Associate II
Jun 15, 2022 05:40 UTC
Solved

Disable JTAG

Good morning,

I would like to know if I can disable the JTAG in the STM32MP1. Once my project is finished I do not want this interface to be active.

Is there a way to disable the JTAG/SWD interface with registers/fuses/OTP?

Kind regards,

Andrés

This topic has been closed for replies.
Olivier GALLIEN
Olivier GALLIENBest answer
ST Technical Moderator
Jun 20, 2022 14:35 UTC

Hi @AGamb.4​ ,

Please refer to RM0436 chapter

3.6.6 BSEC debug configuration register (BSEC_DENABLE)

This register allow you to set debug capability by SW.

Either until next reboot through the register or definitely with OTP ( eg close device )

Olivier

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

2 replies

Olivier GALLIEN
Olivier GALLIENBest answer
ST Technical Moderator
Jun 20, 2022 14:35 UTC

Hi @AGamb.4​ ,

Please refer to RM0436 chapter

3.6.6 BSEC debug configuration register (BSEC_DENABLE)

This register allow you to set debug capability by SW.

Either until next reboot through the register or definitely with OTP ( eg close device )

Olivier

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Visitor II
Feb 23, 2024 10:36 UTC

Hi Oliver,

can you explain in more detail how to disable JTAG permanently via the OTP?

Can this be done via linux userspace?

We are using a STM32MP153.

 

Best Regards
Jan