Skip to main content
Associate III
July 31, 2024
Question

What is the role of the External Loader?

  • July 31, 2024
  • 1 reply
  • 1950 views

Hello,

I want to operate the device in the following manner, but I don't fully understand the concept of the External Loader:

  1. Store DDR Init FW and Main FW in the External NOR Flash.
    1. These two FW will be downloaded to the Flash during board production.
  2. Upon powering on the board, immediately execute the DDR Init FW stored in the NOR Flash.
  • In this case, to access the NOR Flash, QSPI and other GPIOs need to be activated first. Should this role be handled by custom firmware, or does the External Loader take care of this?
  • If that is not the case, do I simply need to set the boot pins to NOR Flash mode to boot directly from NOR Flash?

 

Below are some example files related to the External Loader. I would like to understand what roles each of these files performs.

  • What does "offset" mean? Should it be set differently depending on the address in NOR Flash where the FW is downloaded?
  • Is there a way to obtain the source code for the corresponding bin files?
 

Stnoobs_2-1722392286454.png

*The MPU being used is STM32MP131FAE7

 

Best regards.

1 reply

Olivier GALLIEN
Technical Moderator
August 6, 2024

Hi @Stnoobs ,

Please refer to https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout for some explanation on tsv file format. 

In our exemple MX25L51245G_STM32MP135C-CUSTOM_HW_A7.bin is used by CubeProgrammer to load the NOR flash with 

P 0x4 fsbl-app Binary nor0 0x0000000 FSBLA_SNOR_A7_Signed.bin
P 0x5 fsbl-app Binary nor0 0x0032000 MP13_BSP_TemplatesA7_CUSTOM_HW_Signed.bin

 

After that you can switch pin to NOR flash boot mode and then FSBLA_SNOR_A7_Signed.bin will manage to init DDR and load the application for NOR to DDR and jump into application. 

Hope it help

Olivier 

 

 

 

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
LYUhaha
Associate II
August 19, 2024

hello,

I want to know where the source code of `MX25L51245G_STM32MP135C-CUSTOM_HW_A7.bin` is, because I used `MT25QL02GCBB` to replace the `MX25L51245G` chip, but I don't know how to replace this bin file. Is it generated and renamed by the project `STM32MP13XX_CUSTOM_HW\Applications\XSPI_NOR_Programmer`? If not, please tell me how to modify this bin file, thank you!

 

Best regards.

 

Olivier GALLIEN
Technical Moderator
August 20, 2024

Hi @Stnoobs , @LYUhaha ,

Sources of external loader will be delivered to Mass Market in November release. 

In the meantime, it may be provided on demand by contacting your local ST support or by opening a ticket to OLS. 

Olivier 

 

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.