CRC32 array calculation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CRC32 array calculation

395 Views
safa1999
Contributor I

Hello, I want to learn how an array calculates crc. For example, the CRC32 result of { 0x94 0x90 } array is 0xA4FBCEA5 in my code. Also, the CRC32 result of { 0x90 0x94 } array is 0xC7FACFB8 in my code.

How to calculate CRC. Does it calculate the crc of each value one by one and then performs a transaction between all of them?
What are the processes that take place in the background in crc calculation, can you explain the stages?

For example, it gives a single crc value whether the number of data is 2 or 100.

0x7C, 0x00, 0x01, 0x46, 0x70, 0x60, 0x00, 0x00, 0x7C, 0x74, 0x53, 0xA6, 0x70, 0x60, 0x02, 0x01 = 0x907ACA68

0x7C, 0x00 = 0xC2532405

 

(My board MPC5777C-516) 

Thank you for all answers

0 Kudos
1 Reply

364 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

you can take a look at this example:

https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5748G-CRC32-GHS614/ta-p/1119736

It's written for MPC5748G but there's the same CRC module on MPC5777C.

Anytime you write input register, output register is updated and contains CRC of data stream you already wrote there.

I believe the example will help to understand how it works.

Regards,

Lukas

0 Kudos