Question
32- bit CRC Calculation of flash for STM32F070xB
Posted on January 25, 2018 at 06:42
I am using
♯
, where I tried to calculate the 32- bit CRC of my flash using♯
register.How I can ensure if the CRC calculation of my flash is correct.
CRC Configuration I used is :
hcrc.Instance = CRC;
hcrc.Init.DefaultPolynomialUse = DEFAULT_POLYNOMIAL_ENABLE;hcrc.Init.DefaultInitValueUse = DEFAULT_INIT_VALUE_ENABLE;hcrc.Init.InputDataInversionMode = CRC_INPUTDATA_INVERSION_NONE;hcrc.Init.OutputDataInversionMode = CRC_OUTPUTDATA_INVERSION_DISABLE;hcrc.InputDataFormat = CRC_INPUTDATA_FORMAT_WORDS;/*ROM address*/
&sharpdefine ROM_START (( uint32_t * ) 0x08000000 )
&sharpdefine ROM_END (( uint32_t * ) 0x0801FFFB )Calculated CRC is stored in the variable.
#flash #crc #stm32f070xb #crc->dr #crc-32