AnsweredAssumed Answered

Wrong CRC on STM32F3 at byte-level

Question asked by manu.elettro on Apr 8, 2015
Latest reply on Apr 9, 2015 by manu.elettro
I'm trying to use the CRC peripheral on STM32F3 to calculate the CRC at byte-level but I can not get the same result as indicated in application note AN4187. The following snippet of code should return a CRC equal to 0x4C (according to AN4187) instead I get 0x80. Where is the error?

            CRC->INIT = 0xFF;
            CRC->CR = CRC_CR_POLYSIZE_1;
            CRC->POL = 0xCB;        
            CRC->CR |= CRC_CR_RESET;
            CRC->DR = 0xC1;

p.s. The peripheral clock has been enabled.

Many thanks in advance for your help.

Outcomes