2022-08-12 06:41 AM
2022-08-12 06:49 AM
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.
2022-08-12 06:49 AM
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.
2022-08-13 01:38 AM
Perhaps use tools like objcopy or fromelf to dump/decompose the external linkage and exports?
The device specifics need to be exposed along with the functional entry points like Init, Write, etc