Unable to run application on Nucleo-N657X0-Q via STM32CubeIDE
Hi everyone,
I'm working on a project where I need to use a Nucleo-N657X0-Q board to run an AI model.
I generated the project using STM32CubeMX, setting up LPUART1 for communication and configuring it to have only the FSBL and a secure application. X-Cube-AI was selected to be part of the application.
I generated the project, compiled it, and set up the run configuration in STM32CubeIDE as follows:


The first file in the latter figure is a signed .bin file obtained according to the guide here: https://community.st.com/t5/stm32-mcus/how-to-debug-stm32n6-using-stm32cubeide/ta-p/800547
I set to download it at the origin address of the RAM (0x34000400).
For debugging, I added code in the FSBL to turn on the LEDs and print a message, and I noticed that the FSBL runs, but the application does not start (like if it hangs on the while loop auto-generated in the fsbl code:
/* Initialize USER push-button, will be used to trigger an interrupt each time it's pressed.*/
BSP_PB_Init(BUTTON_USER, BUTTON_MODE_EXTI);
/* Initialize COM1 port (115200, 8 bits (7-bit data + 1 stop bit), no parity */
BspCOMInit.BaudRate = 115200;
BspCOMInit.WordLength = COM_WORDLENGTH_8B;
BspCOMInit.StopBits = COM_STOPBITS_1;
BspCOMInit.Parity = COM_PARITY_NONE;
BspCOMInit.HwFlowCtl = COM_HWCONTROL_NONE;
if (BSP_COM_Init(COM1, &BspCOMInit) != BSP_ERROR_NONE)
{
Error_Handler();
}
/* Infinite loop */
/* USER CODE BEGIN WHILE */
BSP_LED_On(LED_BLUE);
BSP_LED_On(LED_RED);
//BSP_LED_On(LED_GREEN);
printf("FSBL running...\n\r");
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
}
Do you know what I might be doing wrong ?
Thanks in advance!
