When our code reflashes the data flash memory, often (but not always) it is necessary to power cycle the board before the new data reads correctly.
So, for more details, the flash memory is at address 0x10000000 and we write about 10 bytes into it as configuration data. When configurations are to be changed, we erase that sector and then write the new data there. Frequently, after this, the data at address 0x10000000 continues to read the old values until after a power cycle, at which point it holds the new values.
Is there something that the code can do to flush out these stale values?
已解决! 转到解答。
Do you have disabled cache before flash programming?
Pay attention to following thread:
https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778380
Do you have disabled cache before flash programming?
Pay attention to following thread:
https://community.nxp.com/t5/S32K/S32K144-FLASH-CACHE/m-p/778380