ESP8266 Developer Zone The Official ESP8266 Forum 2016-05-17T09:27:54+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2179 2016-05-17T09:27:54+08:00 2016-05-17T09:27:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2179&p=6933#p6933 <![CDATA[How to flush the data cache in front of the Flash chip]]>
There is a cache (of some size) that is used to buffer some amount of the flash to use for returning value for load instructions. Thus if you read a 32 bit flash location (originally erased), you get 0xffffffff. Now write 0 to the flash chip. Now read the same location again and you get 0xffffffff. Now go a do a whole load of other stuff, and do the load again and you get 0.

The question is: How can I flush the cache so that I am guaranteed to get the real value on the next read?

Thanks

Statistics: Posted by philip — Tue May 17, 2016 9:27 am


]]>