Resolved! First write to Flash using EEPROM Emulator fails.
I am adding EEPROM emulation using the x-cube-eeprom package. On program startup I am calling EE_Init and I have traced the code through the checks for the flash to be used being erased, which it is. However, when the first element is written, the fl...