EEE4STM32/README.md
Nima Askari (نیما عسکری) 4d9abc3727
Update README.md
2024-03-28 09:32:32 +01:00

1.8 KiB

EEPROM EMULATION Library for STM32


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



Note

Please Test Any MCU you have and tell me the result.

Caution

EEPROM Emulation Library may not be suitable for frequent data alterations.


Tested List:

-[ ] STM32F0 -[ ] STM32F1 -[ ] STM32F2 -[ ] STM32F3 -[ ] STM32F4 -[ ] STM32F7 -[x] STM32C0 -[ ] STM32G0 -[x] STM32G4 -[ ] STM32H5 -[x] STM32H7 -[ ] STM32U0 -[x] STM32U5 -[ ] STM32WB -[ ] STM32WL -[ ] STM32WBA


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(true);
  while (1)
  {

  }
}