Skip to main content
Piotar1
Visitor II
August 12, 2022
Solved

I made an .stdlr file (in "Release" mode) for ext-loader on STM32F23, copied the file to "prog files....STM32CubeProgrammer\bin\ExternalLoader" but the file doesn't appear in the list of external loaders in cube programmer OR STLink utility?

  • August 12, 2022
  • 1 reply
  • 1414 views

..

This topic has been closed for replies.
Best answer by Tesla DeLorean

Please try to keep the topic summary / title and body of question separate

STM32F23 ??

The .STLDR files have specific section and header expectations, if the StorageInfo record isn't in its own section and present, the file won't load. The tools will ignore during enumeration. Also the enumeration is done only as the tool starts.

Several things the linker needs to export are not internally referenced, you will need to ensure the Linker Script, marks them as things to KEEP rather than discard during dead code removal.

I've posted example linker scripts to the forum previously.

1 reply

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
August 12, 2022

Please try to keep the topic summary / title and body of question separate

STM32F23 ??

The .STLDR files have specific section and header expectations, if the StorageInfo record isn't in its own section and present, the file won't load. The tools will ignore during enumeration. Also the enumeration is done only as the tool starts.

Several things the linker needs to export are not internally referenced, you will need to ensure the Linker Script, marks them as things to KEEP rather than discard during dead code removal.

I've posted example linker scripts to the forum previously.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
August 13, 2022

Perhaps use tools like objcopy or fromelf​ to dump/decompose the external linkage and exports?

T​he device specifics need to be exposed along with the functional entry points like Init, Write, etc

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..