Other Parts Discussed in Thread: MSP-CGT
Tool/software:
Hello,
I can't get the linker to generate a CRC table for a compressed section with different run and load addresses.
In my linker file I have:
.custom.data : {} LOAD=FLASH crc_table(CRC_TBL, algorithm=CRC16_802_15_4) RUN=RAM TABLE(CUSTOM_INIT, compression=lzss) /* */ .customInit : { *(.ovly:CUSTOM_INIT) } > FLASH START(CUSTOM_INIT_BASE) END(CUSTOM_INIT_LIMIT) crc_table(CRC_TBL, algorithm=CRC16_802_15_4)
But when I build it, I get:
warning #99922: PROJ.out: accessing the raw data of section ".custom.data" which is uninitialized according to its section attributes; changes to raw data may be lost
In the map file I can see that .custom.data.load
is created correctly (I can also see it if I disassemble the ELF file). There is a CRC entry for the .custominit
section (the copy table) which is correct. However, the CRC table entry for the section source data is incorrect, it is referencing the run address and run size of the section but it should reference the .custom.data.load
section.
Adding a dedicated line on the linker command file to generate a CRC entry for .custom.data.load
didn't work.
Any pointers on how to get this to work? I'm presently working with MSP-CGT 21.6.1.LTS.
Thanks!