2025-04-30 11:48 AM
Currently, I have a project using a secure application for the STM32N6570-DK. I am able to run and debug the FSBL and Application with the system in Dev Boot, but have yet to be able to attach and debug when booting from the external flash (Boot1 and Boot0 both LOW).
I have placed the following code toward the beginning of my FSBL, and configured my STM32CubeIDE debug to not load the program, and the not reset the chip when attaching for debug. However, I am still unable to attach and debug the system.
__HAL_RCC_BSEC_CLK_ENABLE();
BSEC->AP_UNLOCK = 0xB4;
BSEC->DBGCR = 0xB4B4B400;
__asm("bkpt 255");
Has anyone been able to debug their application with the MCU booting from external flash?
2025-05-02 2:17 AM
Hi @aroby95 ,
Probably you find some help in the article How to create an STM32N6 FSBL load and run (focus on second application case).
-Amel
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-05-02 1:27 PM
Hi aroby95
This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.
Regards
Joe
STMicro Support