cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H743 SPI with CRC mode, acces to CRC from frame

JarekC
Associate

Hello,

- STM32H743

-SPI2 Slave mode, RX only

If the frame has the format N x data + CRC, is it possible to receive the CRC and not just the result of comparing it with the calculated CRC?

Receiving a CRC does not set the RXP bit and is not entered into the FIFO.

An attempt to read the RXCRC register during transmission always gives the result of the CRC for the previous frame.

 

I really need to calculate the CRC for the entire frame because I have the N x Data format without CRC. These are image frames and I want to recognize through CRC whether the frame is the same as the previously received one.

But turning on SPI CRC mode means I don't have access to the last data.

I tried to see if CRC is calculated with TSIZE=0 but the RXCRC register always returns a value of 0.

 

BR JarekC

 

 

0 REPLIES 0