cancel
Showing results for 
Search instead for 
Did you mean: 

How do I boot from Flash in a Baremetal?

Stnoobs
Associate II

I am using the STM32MP131 in a baremetal environment. Since there is no internal flash, I am planning to use external flash and DDR.

I have confirmed that writing to and reading from the flash works, but I don't know how to start from FLASH instead of SYSRAM when powering on.

I saved the FW's bin data at address 0 of the Flash and tried changing the boot mode to QUADSPI Flash, but it did not work.

I think QUADSPI needs to be activated before reading and executing from Flash. Where should I activate this?

Do I also need to modify the linker script for the firmware that runs from Flash?

 

Please let me know if you have any solutions to this problem

Thank you very much in advance.

0 REPLIES 0