2024-08-12 10:02 PM - edited 2024-08-12 10:05 PM
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.
2024-08-14 12:59 AM
Hello @Stnoobs ,
For external flash use with STM32CubeMP13, you can refer to the following articles :
Unfortunatly, currently QSPI Flash memory are not supported.
Kind regards,
Erwan.
2024-08-19 09:11 PM
What does it mean that it does not support QSPI flash memory?
If so, what is the "Serial NOR Flash on QSPI" mentioned in the Boot Mode section of the STM32MP131 Datasheet?
2024-08-19 11:49 PM
Hello @Stnoobs ,
Yes the MP13, from an HW point of view can support it, and in SW this is the case on Linux side. But for MP13 Bare metal, drivers are not present.
Kind regards,
Erwan.
2024-08-20 03:45 AM
Does this mean that if QSPI SNOR booting is hardware-compatible, a separate driver needs to be created to use it in a bare-metal environment?
Could you provide the information required to create the driver?
According to the readme.txt file, the source code of the bin file shown in the picture below is said to be requested to ST.
Can I get the code?