2026-03-20 4:17 AM - last edited on 2026-03-20 5:57 AM by TDK
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进行编程,发现可以编程,也可以调试。这很奇怪!)
Solved! Go to Solution.
2026-03-21 6:49 AM
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 ...
2026-03-20 5:55 AM
> 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.
2026-03-21 2:37 AM
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?
2026-03-21 2:45 AM
You mean that in CubeMX, "Debug Disabled" only skips the software initialization of the pins. After the STM32H723 is reset, the SWD pins are automatically initialized by the hardware. Even if it is skipped, they will still be automatically initialized by the hardware, so it is still possible to program/debug. Am I understanding correctly?
2026-03-21 6:26 AM - edited 2026-03-21 6:27 AM
> You mean that in CubeMX, "Debug Disabled" only skips the software initialization of the pins. After the STM32H723 is reset, the SWD pins are automatically initialized by the hardware. Even if it is skipped, they will still be automatically initialized by the hardware, so it is still possible to program/debug. Am I understanding correctly?
Yes, exactly this. The pins are in SWD mode after reset.
2026-03-21 6:49 AM
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 ...
2026-03-21 8:41 AM
May I ask why the F1 series is not like this?
2026-03-21 8:48 AM
Sorry, I set it as the answer for you. It should have been set as the answer for the first friend. Although what you both said is correct.
2026-03-21 8:50 AM
Sorry, I accidentally set it as the answer for another helpful friend instead of you. It should have been set as your answer. Thank you very much for your responses. However, this also brings up the question: Why is it that for the F1 series, setting it as disabled makes it impossible to burn the code and debug?
2026-03-21 8:58 AM
Why is it that for the F1 series, setting it as disabled makes it impossible to burn the code and debug?