eeprom_stm32: add workaround for arm gcc 11

This commit is contained in:
Ilya Zhuravlev 2021-10-24 15:10:11 -04:00
parent 52e90179d0
commit 91a1e8de2c

View File

@ -34,7 +34,8 @@ static uint8_t *empty_slot;
void EEPROM_Init(void) {
/* First, load the snapshot directly from flash */
memcpy(DataBuf, (void*)FEE_BASE_ADDRESS, FEE_SNAPSHOT_SIZE);
void *volatile tmp = (void*)FEE_BASE_ADDRESS;
memcpy(DataBuf, (void*)tmp, FEE_SNAPSHOT_SIZE);
/* Then, process writelog to update DataBuf entries */
uint8_t *addr;