Showing results for 
Search instead for 
Did you mean: 

Programmer CLI - safety lib - <pattern> 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.

Pavel A.
Evangelist III

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