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.
I am trying to use the CRC module with DMA on TMS570LC4357 in Auto mode to perform CRC checks in the background of the CPU.
Per SPNA235 (Aug 2016), the examples for Full and Semi CPU mode attached there use the CRC Table implementation in the TI Linker (see Section 2), yet it says this cannot be used in Auto mode, so the examples provided aren't much use to me.
The TRM has a good overview of the general method but since my project hasn’t much time left I thought I would ask if there is an example you could provide for performing Auto mode CRC operations please? And guidance on HalCoGen settings if possible?
Hi Amy,
The below thread has example code,
Can you please refer it
--
Thanks & regards,
Jagadish.
Hi Amy,
Sorry for the delay,
I created one example Auto Mode CRC project for the reference, please go through it.
LC43 CRC Auto-CPU Mode IRQ.zip
In this project, using linker script we generated CRC for the four sections of the code (i.e. intvecs, text, const and cinit) and stored their known CRC values in flash.
For Auto mode CRC verification i created two DMA channels, one channel is to move known CRC to the CRC value register and second DMA channel is to move the memory contents to PSA signature register to calculate the PSA signature value.
Here just mention the sector number for which you want to calculate the AUTO CRC
Once you mention the sector number you can verify in debug window the PSA register and CRC value registers with final CRC values.
Here i didn't create example for all the sectors at once because, here sector sizes are not uniform like as mentioned in TRM. That is why i created example for to calculate CRC for one sector at a time.
--
Thanks & regards,
Jagadish.