2024-10-30 10:20 PM
Hello,
I am developing on the STM32MP131FAE board in a bare-metal environment.
This chip does not have internal Flash, so I am planning to load a bin file from external Flash at initial boot.
The Flash will store two bootloaders and two main firmware images.
I understand that when the boot mode pin is set to Flash boot, the ROM code reads data from the external Flash and copies it to the sysram. I have confirmed that it successfully runs bootloader 1 stored in the external Flash.
The reason for splitting the bootloader into two parts is due to the sysram size, which is only 128KB. Since the bootloader is expected to exceed 128KB, I plan to execute bootloader 1 first and then jump to bootloader 2.
question:
What is the maximum size that the ROM code can read from the external Flash? If I can reduce the bootloader to within 128KB, I plan to combine it into a single file, but I have not been able to find information on the maximum number of bytes that the ROM code can read.