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?