2025-06-03 6:41 AM
Hello,
We are using the STM32N6 series MCU in our project and encountering issues during debugging. I’ve attached a screenshot of the error message we are seeing.
We followed the steps outlined in this guide:
https://community.st.com/t5/stm32-mcus/how-to-debug-stm32n6-using-stm32cubeide/ta-p/800547
However, the code cannot be debugged from external flash (in dev boot mode).
But, when we boot from flash (flash boot) and the debugger is not connected, the code runs as expected.
Also, debugging from RAM with FSB works, but debugging the App code from RAM fails and gives the same error.
Based on the information in this page:
https://wiki.stmicroelectronics.cn/stm32mcu/wiki/Category:Security_with_STM32N6,
could this issue be related to the STM32N6's debug security features?
Best regards,
Egemen Aksoy
2025-06-05 5:32 AM
Hi @Clyasenth
Are you able to debug in DEV_BOOT the example already available, such as
STM32Cube_FW_N6_V1.1.1\Projects\STM32N6570-DK\Templates\Template_FSBL_XIP ?
I probably need more details.
Can you specify:
I understand that you lose connection with the debugger only in the App code in DEV_BOOT.
In the debugger configuration and as explained in the Knowledge Article, have you added the FSBL.elf and Appli.elf files to the Startup of your App's Debug Configuration?
In DEV_BOOT, after compiling and signing the binaries, and programming them into the external memory, the debug must be launched on the App project with the following Startup settings:
Often, the hang issue and the appearance of the STLink GDB Server message "Target is not responding, retrying" that you encounter occur when:
Let me know if it helps you?
Best regards,
Romain,
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.
2025-06-16 12:47 AM
Hello @RomainR.
We are using custom hardware.
Yes we are using STM32CubeIDE and it is the last version of the IDE.
I’m configuring the settings as shown in the image, but I’m encountering an error. The application runs when booting from flash, but I’m unable to debug the application code.
Best regards,
Egemen Aksoy