X-cube-eeprom Github | 2026 Release |

if(readData == data) { printf("EEPROM works like a charm!\r\n"); }

Whether you're building a smart thermostat or a custom flight controller, give this library a try. Your future self—debugging a corrupted configuration at 2 AM—will thank you. x-cube-eeprom github

uint16_t readData; EE_ReadVariable(0x0001, &readData); if(readData == data) { printf("EEPROM works like a charm

uint16_t data = 0xABCD; EE_WriteVariable(0x0001, data); // Store at virtual address 0x0001 uint16_t data = 0xABCD

Example for STM32F4:

/* Specify the memory areas */ MEMORY { FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K EEPROM (rx) : ORIGIN = 0x08080000, LENGTH = 64K RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K } #include "eeprom.h" int main(void) { HAL_Init(); EE_Init();