nimaltd / ee

EEPROM emulation for stm32.
GNU General Public License v3.0
311 stars 74 forks source link

STM32F302x8 OK #26

Open marcopio72 opened 3 months ago

marcopio72 commented 3 months ago

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

nimaltd commented 3 months ago

I have updated the LIB. please try again for any device you have.