cancel
Showing results for 
Search instead for 
Did you mean: 

STM32N6570-DK Example Code from Github (FSBL Boot modes) not working

Vishal95
Associate

Hi, @B.Montanari 

We are working with the STM32N6570-DK EVK and developing an application that includes both a Bootloader and an Application. The application requires a contiguous 4MB+ memory block configured as a Heap.

We have followed your articles and example code from GitHub to get started. However, when we load the pre-built binaries available within the example to execute application from PSRAM, the Green LED does not blink. Upon investigation, we confirmed that the FSBL executes JumpToApplication, but the application itself seems to get stuck somewhere. Since we are using the external boot option, debugging is not possible.

Interestingly, when we build the same application using the LoadAndRun linker file, we can debug it, and in this case, we observe that the Green LED blinks as expected.

To verify that the FSBL is booting correctly in Flash mode, we added a blinking LED1 for 2 seconds, confirming that we do reach the Bootloader.

Could you provide insights into what might be causing this issue and how we can successfully execute the application from PSRAM? We have used the available project on a GitHub.

Thanks in advance!

1 REPLY 1
B.Montanari
ST Employee

Hi @Vishal95 ,

I just downloaded the binaries from the github and programmed them on my DK board, the application runs properly. Maybe you used the non-signed binaries? Just to make sure, please use the xyz-Trusted.bin ones when programming:

At address 0x70000000

STM32N6_FSBL_Modes/PSRAM/STM32CubeIDE/FSBL/Debug/FSBL-trusted.bin at main · stm32-hotspot/STM32N6_FSBL_Modes

At address 0x70100000

STM32N6_FSBL_Modes/PSRAM/STM32CubeIDE/Appli/Debug/Appli-trusted.bin at main · stm32-hotspot/STM32N6_FSBL_Modes

Let me know if you still have issues running the application with the binaries,

There is a way to debug, even when executing from external memories. I'm working on an article to guide this process.

Best Regards