Reading from flash causes hardfault
I'm working with the STM32wb55ceu MCU which states that it has 512K of flash memory starting from address 0x08000000.
However, I realized that if I compile and run the follow program, it will hard fault when attempting to read the value from flash (line 3)
void main ()
{
uint8_t i = *(uint8_t *)0x0806f18c;
(void)i;
while (1);
}To my understanding, the flash should end at 0x08080000. and I have confirmed that my flash memory size is 512K by using the st-info utility.
Is there some sort of memory protection I need to disable?
