2020-09-10 07:51 PM
hi,
my type is stm32f031, i try to debug ' spi + dma + crc' mode. i have no idea about transmit crc .
i just enable crc_en, and set the bit crc_next every sending 8bit value.
my logic analyzer occured the only 8 bit datas, it not contains the the crc values.
Solved! Go to Solution.
2020-09-10 07:59 PM
From the reference manual:
CRC transfer managed by DMA
When SPI communication is enabled with CRC communication and DMA mode, the
transmission and reception of the CRC at the end of communication is automatic (with the
exception of reading CRC data in receive only mode). The CRCNEXT bit does not have to
be handled by the software. The counter for the SPI transmission DMA channel has to be set to the number of data frames to transmit excluding the CRC frame.
If it's not working how you expect, consider showing your code.
2020-09-10 07:59 PM
From the reference manual:
CRC transfer managed by DMA
When SPI communication is enabled with CRC communication and DMA mode, the
transmission and reception of the CRC at the end of communication is automatic (with the
exception of reading CRC data in receive only mode). The CRCNEXT bit does not have to
be handled by the software. The counter for the SPI transmission DMA channel has to be set to the number of data frames to transmit excluding the CRC frame.
If it's not working how you expect, consider showing your code.
2020-09-11 03:38 AM
thank you for reply. i gotta it.