2024-10-11 02:13 AM
Hi,
I'm using en.x-cube-eeprom-v7-0-0 on a STM32L476 and I got a problem during my validation phase.
I do lot of write on the EEPROM to be sure my code works well (so lot of CleanUp).
Actually, on the step 4 of the EE_Init(), I have a EE_WRITE_ERROR on the last step:
if (SetPageState(ubCurrentActivePage, STATE_PAGE_ACTIVE) != EE_OK)
When FLASH_Program_DoubleWord is called, the register FLASH->SR:
- is set to 0x8 after the Program first word
- then set to 0xA8 after Program second word
I take a look to the content of the flash at the write address (0x8066008):
There is already a Data 0xAAAAAAAAAAAAAAAA so it's normal the error is set.
What can be done to have the init working (without loose of data if possible) ?
Thanks a lot for advise.