This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I want to calculate the CRC over the Flash_Bank_Sector_1, Flash_Bank_Sector_2 and Flash_Bank_Sector_3 using the Linker CRC. I found the fallowing example (path: ti > controlSUITE > libs > dsp > VCU > v2_10_00_00 > examples > crc). In this example they use the Linker CRC to calcute the CRC value over a example array. Instead i want to replace the example array with my flash memory, but I don´t know how to do that, because I can´t just copy the flash memeory into an array because it would get to big. Do anyone have an idea how to solve this problem? Looking forward to your answers.
Greetings Leon:)
Hi Leon,
I will ask the compiler team to help out on this.
Thanks
Aravindhan
Leon,
Do you need to generate this at runtime?
If not then I'd recommend using the new linker-generated-crc feature in 21.6.0.LTS. See spru513w section 8.9 and 8.9.2.
Thanks
Greg
Hi GregM,
what do you mean by generate at runtime? I want to calculate it once when the device starts. Do you know if theres a example programm?
Greetings Leon
Leon,
You can have the linker generate it (basically at compile time) and then access that in tables.at runtime. Or you can also generate CRC at runtime but you need to be careful that you use the same CRC algorithm and memory regions.
More details here on both link-time and runtime CRC:
https://e2e.ti.com/blogs_/archives/b/toolsinsider/posts/from-the-experts-perform-cyclic-redundancy-checking-using-linker-generated-crc-tables
Regards,
Greg