2017-10-22 10:33 PM
Hello
I'm confused about prototypes of eeprom emulation in eeprom.h.
I read the documentation but i cant undrestand. i want save 30 byte in eeprom with EEPROM emulation .i use stm32f103c8 with 64k flash and use 62 k of flash size.
what configuration i must do in eeprom.h for save only 30 byte ?
what virtual address memory i must use?( i saw in in the example use 5555 or 4444)
thanks
2017-10-23 01:12 AM
I has to use whole flash sectors on the part regardless how small your data is.
Pick whatever virtual address you want, at this abstraction it is just and identifier.
Or just learn how to use FLASH directly to save your own structure.
2017-10-30 11:12 PM
,
,
hello ,
i use this address
uint16_t VirtAddVarTab[20] = { 0x0001, 0x0017, 0x0034, 0x0017, 0x0051, 0x0068, 0x0085, 0x0102, 0x0119, 0x0136, 0x0153, 0x0170, 0x0178, 0x0195, 0x0212, 0x0229, 0x0246, 0x0263, 0x0280, 0x0297 },
it work but i don't know that correct.
and this is my setting ,
/* Define the size of the sectors to be used */
,
♯ define PAGE_SIZE ((uint32_t)0x0400) /* Page size = 1KByte *//* EEPROM start address in Flash */
,
♯ define EEPROM_START_ADDRESS ((uint32_t)(0x08007830 )) /can you help me change this setting for save 20 byte?