How to use Flashx in MQX4.1?
I do not know how to use the API in the Flashx. Is there any source code example?
The sample code is located in:
Field Application Engineer
Freescale Semiconductor (China) Ltd - Nanjing Branch.
Is it necessary to erase the flash before writing data to the flash?
I do not find the erasing command before writing data to the flash in the examples(Freescale_MQX_4_1\mqx\examples\flashx).
Yes, it need erase before write;
But BSP driver have done these works.
The <K64 Sub-Family Reference Manual> describes that "the smallest portion of the program flash memory that can be erased is 4KB".If I only
write 32 Bytes data,it will affects the data in the 4KB memory.Is it right?
Yes, The flashhx driver copy old data and merge new data, erase whole sector and re-write the sector;
I get it.Thank you.
Retrieving data ...