Skip to main content
heveskar
Senior
Feb 26, 2024 9:19 AM UTC
Question

Programmer CLI - safety lib - parameter

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.

This topic has been closed for replies.

1 reply

Pavel A.
Feb 26, 2024 10:07 PM UTC

IIRC the memory filler can be specified in the linker script?