cancel
Showing results for 
Search instead for 
Did you mean: 

X-CUBE-EEPROM function EE_Init returns EE_OK when flash program fails instead of EE_WRITE_ERROR

Graham1
Associate II

While attempting to identify an issue with reading and writing to emulated EEPROM, I have identified a bug in V7.0.0 of the X-CUBE-EEPROM source code.

This was identified in the STM32WB version of `flash_interface.c` with `DUALCORE_FLASH_SHARING` defined. 

 

In the function `FI_WriteDoubleWord` on lines 97-104, the value of `ee_status` is correctly set to `EE_WRITE_ERROR` when a program failure occurs, however this is overwritten on line 104 with `EE_OK`.

Graham1_0-1713543258046.png

As a fix for this, I changed these lines to the following: 

Graham1_1-1713543327933.png

Could this be addressed in the next release of this tool? 

 

1 REPLY 1
STOne-32
ST Employee

Hi @Graham1 ,

Thank you for reporting it, much appreciated. we logged /escalated internally using this Reference #184454 for follow-up .

Ciao

STOne-32.