Create a big binary file (1024 * 1024) on the spiffs partition Try to have random access and create a logger https://www.mischianti.org/2020/06/04/esp32-integrated-spiffs-filesystem-part-2/