AnsweredAssumed Answered

CRC only up to 8kB Flash instead of 16kB

Question asked by LookUpTable on Oct 28, 2014
Latest reply on Oct 28, 2014 by Clive One
I want to calculate a CRC over the whole Flash Memory (16kB) of a STM32F030F4. I works fine up 8kB. Putting Values >8192 for BufferLength into CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength). The program won't reach Reset GPIO_PIN_1. Tools: Keil 5.1 ST-LinkV2
Any Idea ?

#define FLASH_BASE            ((uint32_t)0x08000000) /*!< FLASH base address in the alias region */

GPIOB->BSRR|=GPIO_Pin_1;

CRC_DeInit();

CRC_ResetDR();

uint32_t *pFLASH= (uint32_t *)FLASH_BASE;

test_CRC=CRC_CalcBlockCRC(pFLASH,8192)

GPIOB->BRR|=GPIO_Pin_1;

Outcomes