there are two problems that confused me:
1. i have to write some global uint32_t variates into flash, these variates need to be updata according to the routine demands.How to write variates into fixed address of flash respectively, and how to read the content of these fixed address respectively.
2. i use the last few sectors to storage golbal variates which need to be updata, one sector has 512 byte. when i update one of the bytes, the others stay the same, but before i write the flash ,i have to erase the sector. what my operation is correct? how i do to write the flash?