nimaltd / ee

EEPROM emulation for stm32.
GNU General Public License v3.0
343 stars 76 forks source link
c-library cubemx eeprom emulation flash flash-eeprom flashmemory hal iar internal-eeprom internaleeprom keil library onchipeeprom stm32 stm32cube stm32cubeide stm32cubemx

EEPROM EMULATION Library for STM32


Please Do not Forget to get STAR, DONATE and support me on social networks. Thank you. :sparkling_heart:


[!CAUTION] EEPROM Emulation Library may not be suitable for frequent data alterations.

This library facilitates EEPROM emulation on microcontrollers by selecting the latest sector or page for emulation space.


Watch the Video:

Video

The old Version: https://github.com/nimaltd/ee/archive/refs/tags/V2.0.6.zip

#include "ee.h"
typedef struct
{
 uint32_t val1;
 uint32_t val2;
 uint32_t val3;
 uint32_t val4;
 uint32_t val5;
 uint32_t val6;
 uint32_t val7;
 uint32_t val8;

} Stotrage_t;

Stotrage_t ee;

.
.

int main(void)
{
  .
  .
  EE_Init(&ee, sizeof(Stotrage_t));
  EE_Read();
  ee.val1 = 1;
  ee.val2 = 2;
  ee.val3 = 3;
  ee.val4 = 4;
  ee.val5 = 5;
  ee.val6 = 6;
  ee.val7 = 7;
  ee.val8 = 8;
  EE_Write();
  while (1)
  {

  }
}