Skip to main content
Associate II
March 20, 2026
Solved

Able to program board despite "Debug: Disable" setting

  • March 20, 2026
  • 1 reply
  • 404 views

Please use English on this forum.

Translated: The development board is STM32H723, using stm32cubemx for development, debug is disabled, using stlink to burn found that it can be burned, and it can also be debugged, which is very strange! (The development board is STM32H723.) It was developed using STM32CUBEMX. The debugging option is set to "Disabled". Programming with stlink, discovering that it can be programmed and debugged. It's weird! )

Original:

开发板为STM32H723,使用stm32cubemx进行开发,debug勾选禁用,使用stlink烧录发现可以烧录,并且还可以调试,非常奇怪!(开发板是STM32H723。它是使用stm32cubemx开发的。调试选项设置为“禁用”。使用stlink进行编程,发现可以编程,也可以调试。这很奇怪!)

 

Best answer by MM..1

Simply MX debug enabled only block generator use this pins as GPIO or other alternate. With disabled this is unlocked to use , but nothink as debug protect is real here. Exist two ways to prohibit debug . A configure pins on code start to other func in your code. B ...

1 reply

TDK
Super User
March 20, 2026

> The development board is STM32H723, using stm32cubemx for development, debug is disabled, using stlink to burn found that it can be burned, and it can also be debugged, which is very strange! (The development board is STM32H723.) It was developed using STM32CUBEMX. The debugging option is set to "Disabled". Programming with stlink, discovering that it can be programmed and debugged. It's weird! )

This is not a bug. The pins are set to SWD by default.

The "Disabled" setting doesn't disable the interface, it just fails to initialize the pins. But they are already initialized after reset.

"If you feel a post has answered your question, please click ""Accept as Solution""."
zzzaizzAuthor
Associate II
March 21, 2026

I didn't understand your meaning. I'm sorry. Why is the F1 series selection disabled? Once it is burned, it becomes impossible to re-burn and debug again?