cancel
Showing results for 
Search instead for 
Did you mean: 

STM32N657I0HxQ - Custom Board - FSBL Load & Run issue

avinashmm
Visitor

Hello,

    I have designed a custom PCB using STM32N657I0HxQ and W25Q32JWZPIQ NOR flash. I am following the STM32N6 FSBL Load & Run tutorial https://community.st.com/t5/stm32-mcus/how-to-create-an-stm32n6-fsbl-load-and-run/ta-p/768206 , but have trouble getting the application running. I am using below setup:

STM32CubeIDE - v1.19.0

STM32CubeProgrammer -v2.21.0

STM32CubeMX - v6.15.0

I have created a custom external memory loader for W25Q32JWZPIQ and able to connect device in Dev boot mode (BOOT1 -1, BOOT0-0) and flash FSBL-trusted.bin and Appli-trusted.bin at 0x70000000 and 0x70100000 respectively. Also, I am able to verify the contents.

 fsbl-flash.jpgapp-flash.jpgfsbl-memory.jpgapp-memory.jpg

 When I connect to Flash boot mode (BOOT1-0, BOOT0-0), Led is not blinking. 

I tried to debug by setting device into Dev mode and run FSBL directly into internal RAM, I can see the FSBL is properly copying the application code to 0x34000000 but JumpToApp() ends up in fault.

jump.jpgbreakpoint.jpg

I have tried the below

FSBL-trusted(Led toggle) + ExtMemLoader  - FSBL loads from 0x70000000 into internal RAM and led blinks.

FSBL-trusted + Appli-trusted(Led toggle) + ExtMemLoader - FSBL and Appli loads into internal RAM but crashes at JumpToApp().

Please let me know if there are any specific settings required for the app to work.

 

0 REPLIES 0