Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32F302x8 OK #26

Open
marcopio72 opened this issue Mar 24, 2024 · 1 comment
Open

STM32F302x8 OK #26

marcopio72 opened this issue Mar 24, 2024 · 1 comment

Comments

@marcopio72
Copy link

marcopio72 commented Mar 24, 2024

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
Copy link
Owner

nimaltd commented Mar 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants