程序里面有这样子的注释:
/*
This flash is erased to all 1's and can only be written with zeroes.
Therefore, we do a check in the driver to determine if a 0->1 transition
is needed for the write. If so, we return an error, because an attempt
to make this invalid transition may halt the device.
*/
每次写到8K后都是在这里退出。
dataToWrite 表示之前要写的数据,
R_NVF_WORD_REG((unsigned int)address + addrOffset) 表示写进了FLASH的数据