what does the polynomial become when crc8
Greetings. I ran into a problem, I can’t figure out how to become a polynomial if I use not 32 binary mode but in 8 bit mode. MCU STM32F072x8/xB
if I use a 32-bit setting, I get the correct data and can process it on a PC, but with 8 bits it doesn’t work..
uint32_t crc32(uint8_t *data, uint16_t size){
uint32_t crc = 0;
SET_BIT(CRC->CR, CRC_CR_RESET); // RESET bit
for (int i = 0; i < size; i ++){
CRC->DR = * (data + i);
}
crc = CRC->DR;
return crc;
}
