Hard fault to read internal EEPROM - STM32L011
Hi,
I am getting a hard fault while trying to read from the internal EEPROM (STM32L011), function:
uint8_t Read_EEPROM_Byte(uint32_t address)
{ uint8_t tmp = 0;address = address + 0x08080000;
tmp = *(uint32_t*)address;return tmp;
}How to solve this?
Thanks.
#stm32l0 #eeprom