Because I have to use a third-party bootloader which cannot handle varying lengths of lines in an SREC file, I need a way to instrument objcopy
to create a SREC file, where every S1
line has the same lengths (if no info from ELF file is provided, it should be filled with FF
).
We can assume that the address increments are consistent, so we do not jump higher in addresses than our specified line length. So we do not need to create in-between lines with all FF
e.g.
I found out about --srec-len
but this only sets the maximum length size.
I would need something that sets a fixed length size, is there something I can use?
A possible solution would be also to transform the earlier generated SREC file from objcopy with a (third-party) tool