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?