Hard Fault when reading flash
I am working to generate the CRC for the flash memory, During this I am facing hard fault when the CRC module tries to read from certain flash locations, to debug it I made a small loop which assigns the value of each 4 byte. I found that reading at certain locations results in hardfault.
I tried with different starting address, I found that
when starting address is 0x08000000 hardfault occurred at 0x08000440
when starting address is 0x08001000 hardfault occurred at 0x0800144c
when starting address is 0x08004000 hardfault occurred at 0x080044cc
uint32_t *d1 = 0x08000000;
while(length){
uint32_t temp = *d1;
d1++;
length -= 4;
}Any Idea of what is causing this issue?
