2013-07-08 02:56 AM
Good morning,
I need to manage the internal EEPROM of the STM32L151C6: i found some library function for erasing and programming (DATA_EEPROM_ProgramByte, etc..), but I was not able to find some function for Reading from the EEPROM the previous stored data. If someone have had the same issue, could give me some advices? Thank you in advance! Andrea #stm32l #eeprom #eeprom-rww2013-07-08 03:39 AM
You can directly read from the corresponding address, e.g.
#define SRC_ADDR 0x08080000 memcpy
(&dest, ( void *) SRC_ADDR, sizeof (dest));2013-07-08 04:21 AM
It should read just like any other memory within the address space, like RAM, ROM, FLASH
#define SRC_ADDR 0x08080000 uint32_t *mem = (uint32_t *)SRC_ADDR; // Or set a pointer to it, could be a structure2013-07-08 05:05 AM
thank you clive1 and kipp.michael, i'm trying!
2015-06-25 07:38 PM
Would you please tell me how to write data into the internal EEPROM of stm32L152?
Thank you for answer. Kevin2015-06-25 08:43 PM
Review the example code
STM32L1xx_StdPeriph_Lib_V1.3.0\Project\STM32L1xx_StdPeriph_Examples\FLASH\Data_Program\main.c