2011-06-18 04:50 AM
I am trying to use the Flash as EEPROM and need to store some user datas into the flash.
uint8_t User[]=''1112223332@gmail.com'' May i know how to store the above data in the FLASH? In the application notes i found that each time before you write into the FLASH the whole block is erased. Is it necessary to erase the entire block before writing into it? The total area of the page is defined to be only 1KB. And also the data can be written either as WORD or Programhalfword? No byte write and read is possible?2011-06-18 05:15 AM
You only need to erase if the section/portion of flash you want to write is not blank. If you want to be writing lots of small things, write them in a list/loop, read the last one, and erase when you fill a page.
The minimum write/program unit is 16-bits, but you can read 8/16/32-bits as you would with normal memory. To program your string you'd round the length up to a multiple of 2, and program it as a group of 16-bit words. Use standard programming code from ST's library examples.2011-07-05 11:22 PM
you can go through example available at
Hope It will help