Thanks to visit codestin.com
Credit goes to github.com

Skip to content

STM32F302x8 OK #26

@marcopio72

Description

@marcopio72

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions