Hello,
I followed SPNA235–August 2016 in order to create linker generated CRC table. Such like this:
.text : {} palign=8, fill=0xffffffff, crc_table(textCrcTable, algorithm=TMS570_CRC64_ISO) > FLASH0 | FLASH 1
After that in the source code (.c) I declared an extern variable like this:
extern const CRC_TABLE textCrcTable;
By this way I reach the CRC value generated by the linker. However, when I execute rule check for MISRA C 2012 there is an issue occured "The 'textCrcTable' object has no definition." although I am using in the function defined in the same source file.
The rule dictates "An identifier with external linkage shall have exactly one external definition."
I have used this kind of access to the variable since the document SPNA235–August 2016 states that:
->There are several ways to define and access the CRC tables created by the linker. The following definition for a CRC table within the C code is recommended:
extern const CRC_TABLE _my_crc_table;
Could you help me to implement any other way that passes MISRA rule check?
Thank you.