Stm32F3xx Flash read and write uses but focussed around byte size operations
Hi ,
I ma looking at using the internal flash for EEPROM emulation, using Atolic and STM32F302cc
I have read the aplication note on eeprom emulation and quite a few stackoverflow discussion as well as a few ST community posts which seems to focus around the STM32F4xx series.
Having said this i also worked through the Cube example on FLASH erase Program. I understand the process and what it is doing including the align by 4 .
The code howver seems to erase the whole page , then wrtite the whole page , and then read the whole page.
if the page is 2048 bytes in size and starts at 0x0803f800 (taking the last page in to account). it will erase everything in there which is a problem if you want to focus only on a sector.
What i cant seem to find is how to only erase the the 4 byte sector. following the READ, MODIFY, ERASE WRITE pricipal
Do i always have to erase the full page ?
Can i only do a READ,MODIFY, Write operating on the 4 byte sector?
Do you perhaps have a sample of byte operations for this application ?
regards
Conrad