2024-02-26 01:19 AM - edited 2024-02-26 01:25 AM
We are using the safety lib (-sl) command with X-CUBE-STL library. Without <pattern> parameter, it is working. When trying to use 0xFF for <pattern> parameter, generated .elf is not even valid and cannot be loaded. Is there a workaround for this?
For context, as we were discussing in this thread, when there is an empty word between .isr_vector and .text sections, the empty space seems to be filled with 0x00000000 in the elf, in the device it is an empty word of 0xffffffff, and the CRC check in the firmware fails. Changing alignment to 8 fixes this. We were wondering if <pattern> parameter would solve the issue too, but we couldn't try it as the resulting elf is not valid.
2024-02-26 02:07 PM
IIRC the memory filler can be specified in the linker script?