Skip to main content
Associate
August 3, 2026
Question

Bug report EE_NO_PAGE_FOUND in X-CUBE-EEPROM Emulator

  • August 3, 2026
  • 3 replies
  • 29 views

Hello everyone,

It is more a bug report than a question, but in the last version of X-CUBE-EEPROM, (X-CUBE-EEPROM | Product - STMicroelectronics) I found out that value “EE_NO_PAGE_FOUND” is defined twice.

Once in eeprom_emul.h:

/* No page define */
#define EE_NO_PAGE_FOUND ((uint32_t)0xFFFFFFFFU)

And once in eeprom_emul_types.h:

/**
* @brief EE Status enum definition.
*/
/* Define of the return value */
typedef enum {
/* External return codes : ok */
EE_OK = 0U,

...

/* Internal return code */
EE_NO_PAGE_FOUND, -> here, second definition
EE_PAGE_NOTERASED,

...
} EE_Status;

Is it made on purpose? 

Best regards

3 replies

Andrew Neil
Super User
August 3, 2026

Is one of them never used (guessing the one in eeprom_emul.h) ?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
JeremAuthor
Associate
August 3, 2026

I deactivated the definition in EE_Status as it looks never used.
In eeprom_emul.c, the only function returning EE_NO_PAGE_FOUND is the static function FindPage(). The API of eeprom_emul.c returns EE_ERROR_NOERASE_PAGE or EE_ERROR_NOACTIVE_PAGE if FindPage() returns EE_NO_PAGE_FOUND.

ST Technical Moderator
August 7, 2026

Hello ​@Jerem 

Thank you for bringing this issue to our attention.

I reported this internally.

Internal ticket number: CDM0064968 (This is an internal tracking number and is not accessible or usable by customers).

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Saket_Om