Hi,
Am trying to add CRC32 in the end of the Flash memory of an STM32F101 using IAR tool. So far so good , IAR generate "a" CRC32 and write it in the end of memory.
I wrote a function that calculate CRC using integrated CRC hardware
#define MEM_START 0x08000000
#define MEM_END 0x0803FFF8
#define MEM_CRC 0x0803FFFC
uint32_t CheckFlashCRC()
{
CRC_ResetDR();
CRC_CalcBlockCRC((u32 *)MEM_START,((MEM_END-MEM_START)/4)+1);
return(*(u32 *)MEM_CRC));
}
The result of this routine is 0x784888AC
the IAR CRC is 0x60D8E753
and i couldn't make those two equal no matter what i change in IAR parameters , the previous values match the parameters in the picture.
Thanks