eeprom_stm32: add workaround for arm gcc 11
This commit is contained in:
parent
52e90179d0
commit
91a1e8de2c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user