STM32L15x: Read previously saved data in internal EEPROM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-07-08 2: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-rww- Labels:
-
EEPROM devices
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-07-08 3:39 AM
You can directly read from the corresponding address, e.g.
#define SRC_ADDR 0x08080000 memcpy
(&dest, ( void *) SRC_ADDR, sizeof (dest));- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-07-08 4: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 structureUp vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-07-08 5:05 AM
thank you clive1 and kipp.michael, i'm trying!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-06-25 7:38 PM
Would you please tell me how to write data into the internal EEPROM of stm32L152?
Thank you for answer. Kevin- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-06-25 8:43 PM
Review the example code
STM32L1xx_StdPeriph_Lib_V1.3.0\Project\STM32L1xx_StdPeriph_Examples\FLASH\Data_Program\main.cUp vote any posts that you find helpful, it shows what's working..
