Skip to main content
Explorer
August 2, 2025
Solved

Disable Debug module permanately

  • August 2, 2025
  • 1 reply
  • 280 views

Dear community,

In STM32G0 or maybe in STM32 family in general, is there a possibility to disable the debug module permanently, the idea is that when the code is loaded and tested, then the next step is to disable SWD/JTAG port so that debug or loading another firmware is not possible anymore.

Thank you in advance for your support.

Best regards

B.T

    This topic has been closed for replies.
    Best answer by TDK

    You can set RDP level 2 on most STM32 families, including the STM32G0. This disables the debug port permanently and is not reversible.

    This can be done in the program or within the option byte modification screen in STM32CubeProgrammer.

    Again, this is not reversible and generally results in a chip which can no longer be debugged or upgraded.

    TDK_0-1754145355633.png

     

    1 reply

    TDKAnswer
    Super User
    August 2, 2025

    You can set RDP level 2 on most STM32 families, including the STM32G0. This disables the debug port permanently and is not reversible.

    This can be done in the program or within the option byte modification screen in STM32CubeProgrammer.

    Again, this is not reversible and generally results in a chip which can no longer be debugged or upgraded.

    TDK_0-1754145355633.png