Content originally posted in LPCWare by harper23 on Wed Sep 17 22:53:08 MST 2014
Quote: xianghuiwang
Hi, harper23,
Hi xianghuiwang,
thanks for your reply.
Quote: xianghuiwang
Maybe I miss understood your question. I thought you want to directly do CRC on the SPI data without using two DMA steps to store and then DMA to the CRC engine.
No, you didn't misunderstood. The objective is to calculate the CRC of the data that is received from the SPI port. The data should transferred directly from the SPI to the CRC engine in one DMA transfer.
Utilizing the RAM would add a penalty of slowing down the process and should be avoided.
Quote: xianghuiwang
We have not tested this possibility.
Could you test it? I provided the code I used. It failed as it did not change anything in the CRC enging. But probably you find something that coudl be done better.
Quote: xianghuiwang
If we set the destination of the SPI data to the CRC register, we only will get the CRC result but not the SPI data. This was what I mean previously.
Yes that is the desired result. So I read your reply as it would be possible.
Best regards
harper23