cancel
Showing results for 
Search instead for 
Did you mean: 

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?

Piotar1
Associate
1 ACCEPTED SOLUTION

Accepted Solutions

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

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 Venmo
Up vote any posts that you find helpful, it shows what's working..