Skip to main content
Visitor II
December 13, 2023
Solved

Handling of more than one external stldr loaders

  • December 13, 2023
  • 2 replies
  • 1088 views

Hi guys,

so we have a more complex board and I wondered if it is somehow possible to use more than one external loaders with the CubeProgrammer software on the command line.

So in general we are capable of writing these loaders and have several already running. For our current board two approaches come to mind but I do not find information on these:

Approach 1 - Write two different loaders

We could create two different stldr files for the two different memories we want to address. But is it somehow possible to use both of them on the same command line command with the cubeprogrammer cli? As we are getting one single hex file with all memory addresses out of the build system

Approach 2 - Write one loader addressing both memories

This one could be trickier because as far as I know we can only have one StorageInfo struct with a linear memory address range. But do you guys know of something how that could be achieved?

 

Cheers,

Patrick

    This topic has been closed for replies.
    Best answer by KDJEM.1

    Hello @patrickschneider9 ,

    You can use more than one external loaders with the STM32CubeProgrammer. A maximum of ten external loaders can be used.

    You can do it by selecting one (or more) external loader(s) from the “ExternalLoader” panel, which is (are) used by the tool to read, program, or erase external memories, as shown in Figure 22 in UM2237. Or by using External loader command  "-el".  This command allows the path of one or more external memory loaders to be entered, to perform programming, write, erase and read operations with an external memory. For more information please take a look to Example3  Section 3.213 External Loader command in UM 2237.

     Thank you.

    Kaouthar

     

    2 replies

    KDJEM.1Answer
    Technical Moderator
    December 13, 2023

    Hello @patrickschneider9 ,

    You can use more than one external loaders with the STM32CubeProgrammer. A maximum of ten external loaders can be used.

    You can do it by selecting one (or more) external loader(s) from the “ExternalLoader” panel, which is (are) used by the tool to read, program, or erase external memories, as shown in Figure 22 in UM2237. Or by using External loader command  "-el".  This command allows the path of one or more external memory loaders to be entered, to perform programming, write, erase and read operations with an external memory. For more information please take a look to Example3  Section 3.213 External Loader command in UM 2237.

     Thank you.

    Kaouthar

     

    Visitor II
    December 13, 2023

    Thank you that answers my question fully!