Hello,
In the linker file of my project I have the line
.section_to_be_verified: palign(8) {bsp_sys_startup.obj(.text)} crc_table(_crc_table) > FLASH0 | FLASH1
so a variable _crc_table is generated by the linker with the crc for the section bsp_sys_startup.obj(.text).
The problem is that the calculated CRC is wrong, I have verified the result with python "crcmod" (also double check with some other tools).
I have also verified using the CRC hardware module of TMS570LS31x/21x.
Also, using the CRC hardware module, I have verified that if I do not swap the HIGH and LOW 32 bits when writing to "PSA Signature Register" and when reading from "PSA Sector Signature Register" the result matches with the result calculated by the linker.
Also, note that halcogen tool is generating a wrong crc example source code, as values are not swapped when written nor read. This must be fixed as well.