This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32F407 SPI - CRC_CALCULATION

Im working on a project where i going to communicate between a STM32F407VGT and a LTC6804 BMS chip. for communication im going to use SPI with 8Bit datasize. For the communication im going to use a Packet error code which is a 15-bit cyclic redundancy chech (CRC-16) calculation.

sending a message (0x00 0x01) should return CRC value (0x3D 0x6E).
I have trid to use the CRC calculation in the SPI driver stm32f4xx_spi.h but i can't figure out how i can initialize the CRC register with a value of: 0x000000000010000.

Has anybody worked with the CRC calculation and knows if this is possible to initialize the crc polynomial calculation?.

Best Regards
Helge