CRC from partial calculations

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

CRC from partial calculations

2,675件の閲覧回数
juanabelaira
Contributor III

Hello, I need to reckon the CRC of a long file in an external SPI memory so I take blocks into RAM and calculate their partial CRCs with the functions in LpcOpen library. I couldn't find how to obtain the total CRC, can anyone point me in the right direction? Thanks.

ラベル(1)
タグ(1)
0 件の賞賛
返信
6 返答(返信)

2,133件の閲覧回数
martinlorenz
Contributor II

I think you have to implement the crc function manually, because you will need access to the internal state of the crc polynomial which must be handed from one block of data to the next one.

0 件の賞賛
返信

2,133件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi Juan Abelaira,

Thank you for your interest in NXP Semiconductor products and 
the opportunity to serve you.
I was wondering if you can tell me the chip you used.
Have a great day,

TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

2,133件の閲覧回数
juanabelaira
Contributor III

LPC1518

0 件の賞賛
返信

2,133件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi Juan Abelaira,

In the LPCOpen library of the LPCXpresso LPC1549, the crc demo has exemplified the CRC engine for 8-bit, 16-bit, and
32-bit CRC computation, please refer to the demo for details.

Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

2,133件の閲覧回数
juanabelaira
Contributor III

That example (if we are talking about the same) takes the CRC of a limited and complete set of data. It doesn't help with my problem, as it is different. I'll state it again: My data to calculate the CRC is only available in blocks because it's larger than the MCU's RAM. So I take, let's say, 4 KB, calculate a partial CRC, read the next 4KB block and so on. 

0 件の賞賛
返信

2,133件の閲覧回数
June
Contributor I

Hi Juan,

Did you manage to get it to work? Can you share your working code?

Thanks. 

0 件の賞賛
返信