This libriary is consists of two files:
- Inc/STM32_EEPROM_SPI.h
- Src/STM32_EEPROM_SPI.c
Lib is tested with STM32F103C8T6 and M95640-W. You can use configured STM32CubeMX configuration from F103-EEPROM.ioc.
- Add "Cycling with Error Correction Code"
- Add Hold condition
- Add Write Protect condition
You are welcome to review the code and update it.