AnsweredAssumed Answered

STM32 internal EEPROM

Question asked by grossi.marco on Nov 18, 2014
Latest reply on Jun 26, 2015 by Clive One
I am using the STM32l Discovery board ( The ucontroller on the board (STM32L152RB) features 4kB of EEPROM at the address 0x08080000 that can be used for non-volatile data storage.
I was trying to read/write/erase such memory using the pheripheral library stm32l1xx_flash.c
My questions are:

1) In the header file stm32l1xx_flash.h all the supported functions are listed. There are functions to unlock/lock the memory, write byte/word, erase byte/word. However there are no functions to read a byte/word. What is the code to read a byte/word at a particular address in the range 0x08080000 - 0x08080FFF?
2) Before making a write operation on a byte/word, is it necessary to erase that byte/word before?