Using EEPROM to Store Data on the Arduino – Norwegian Creations
Reading and Writing Flash Memory | Arduino Documentation
GitHub - kentaylor/EraseEsp8266Flash: A short Arduino sketch to erase all of the flash memory in an ESP8266 device. This is useful for fixing corrupted memory.