-
Type:
Enhancement
-
Resolution: Unresolved
-
Priority:
Low
-
Code Generation Tools
-
CODEGEN-14180
-
MSP430_21.6.1.LTS
-
default
The attached C file has these lines ...
__attribute__((section(".custom.data"), retain))
const int array[] = { 1, 2, 3, 4, 5, 6, 7, 8 };
The attached linker command file has these lines ...
.custom.data :
LOAD=FLASH
crc_table(CRC_TBL, algorithm=CRC16_802_15_4)
RUN=MEM
/* To see the failure, uncomment the compression on the next line */
TABLE(CUSTOM_INIT /*, compression=lzss */)
It builds clean.
% cl430 file.c -z -o file.out -m file.map msp430_link.cmd <Linking>
Add compression on the copy table ...
% cl430 file.c -z -o file.out -m file.map msp430_link.cmd <Linking> warning: file.out: accessing the raw data of section ".custom.data" which is uninitialized according to its section attributes; changes to raw data may be lost warning: file.out: accessing the raw data of section ".custom.data" which is uninitialized according to its section attributes; changes to raw data may be lost
The suggestion is to compress first, then compute the CRC on the compressed memory image.