Part Number: RM48L952
Other Parts Discussed in Thread: HALCOGEN
Tool/software: TI C/C++ Compiler
Hello,
HALCoGen generates a sys_link.cmd file with a sections definition like :
SECTIONS
{
.intvecs : {} > VECTORS
.text : {} > FLASH0 | FLASH1
.const : {} > FLASH0 | FLASH1
/*....*/
/* USER CODE BEGIN (4) */
/* USER CODE END */
}
The CRC document (spna235) suggests that you use the following line to let the compiler calculate the CRC over a section :
SECTIONS
{
/* Flash based sections */
.intvecs : {} palign=32, fill=0xff, crc_table(_my_crc_table, algorithm=TMS570_CRC64_ISO) > VECTORS
.text : {} palign=8, crc_table(_my_crc_table, algorithm=TMS570_CRC64_ISO) > FLASH0 | FLASH1 /* Executable code and constants */
.const : {} palign=8, crc_table(_my_crc_table, algorithm=TMS570_CRC64_ISO) > FLASH0 | FLASH1 /* Global and static const variables that are explicitly initialized */
However, if I substitute these lines in the sys_link.cmd generated by HALCoGen, HALCoGen will overwrite them.
Are there lines that I can add between the USER CODE comments that calculate the crc table?
Best regards,
Karel