CRC32 array calculation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

CRC32 array calculation

1,112 次查看
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 项奖励
回复
1 回复

1,081 次查看
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 项奖励
回复