STM32F302x8 OK
These worked for me:
ee.c ` #define PAGE 0 #define SECTOR 1 #define PAGE_NUM 31
#if defined(STM32F302x8)
#define _EE_SIZE 2048
#define _EE_PAGE_OR_SECTOR PAGE
#define _EE_ADDR_INUSE
(((uint32_t)0x08000000) | (_EE_SIZE * _EE_USE_FLASH_PAGE_OR_SECTOR))
#if (_EE_USE_FLASH_PAGE_OR_SECTOR > 31)
#error "Please Enter correct address, maximum is (31)"
#endif
#endif
`
eeConfig.h
#define _EE_USE_FLASH_PAGE_OR_SECTOR (31) #define _EE_USE_RAM_BYTE (1024) #define _EE_VOLTAGE FLASH_VOLTAGE_RANGE_3 // use in some devices
Ciao
I have updated the LIB. please try again for any device you have.