Announcements

Equip yourself to optimize AURIX™ MCUs for Evs at the EV Webinar. Click here to register.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

AURIX™ Forum Discussions

Kumaresh
Level 3
Level 3
10 questions asked 10 replies posted First solution authored
Hi ,
Background : We transfer 12bit Single Channel ADC data over DMA and want to compute CRC using our SW and compare it with the checksum computed by the DMA. For our SW computation we use FCE to calculate CRC.
Problem :
Lets say the data we transferred by DMA = 0x804
DMA computed checksum = 0x8E6D5CEE
 
When I use FCE to compute the CRC the Input data is always taken in 32 bit format i.e 0x00 0x00 0x08 0x04.
And the CRC I get for this is 0xEEF0910D
 
Both the CRC's are correct the only difference is the input data format.
Question : Is it possible to use FCE to calculate CRC-32 for a 16 bit data ? If so could you please assist me on this.
Screenshot : 
 
Kumaresh_1-1674378387995.png

 

 
Note : Changed DMA data transfer width to 32 bit and CRC computation is okay. But as we use only one ADC channel that other half contains some garbage data. 
 
Thanks,
Kumaresh
0 Likes
2 Replies
Aiswarya
Moderator
Moderator
Moderator
10 solutions authored 25 replies posted 50 sign-ins

Hi,

In FCE, the bit width of each word should be in terms of KERNEL polynomial width.
You would need to pad the 16-bit data.

Please find the thread below:
https://community.infineon.com/t5/AURIX/Calculated-CRC-from-FCE-on-the-DMA-data-being-transferred-do...

Regards,
Aiswarya.

0 Likes

Hi, If I pad other 16 bits to the data which I need to calculate CRC using FCE then it will be different by the CRC calculated by DMA.  Does the padded bits also considered in CRC calculation? From my testing I see that the CRC is computed with padded bits. So thought to confirm with you

0 Likes