Enable this in spiffs_config.h and you can open, read ans write your File.
SPIFFS_ALIGNED_OBJECT_INDEX_TABLES
Store static file in flash
Re: Store static file in flash
I'm currently working with SPIFFS and had a problem with making it work. The issue was caused by different SPIFFS version in LUA source https://github.com/whitecatboard/Lua-RT ... s/spiffs.h and in mkspiffs https://github.com/igrr/mkspiffs/.
Solution: updating spiffs in mkspiffs source (and re-enabling SPIFFS_TEST_VISUALISATION in new spiffs_config.h).
Solution: updating spiffs in mkspiffs source (and re-enabling SPIFFS_TEST_VISUALISATION in new spiffs_config.h).
Re: Store static file in flash
I have been bouncing back and forth between ESP32-IDF and arduino-esp32
I have have started playing with SPIFFS, and have my app showing the files I have uploaded.
I am using PlatformIO, and they have a neat feature where you create a "data" folder, and chuck whatever files you want in there.
Then you run the following commands, and it will upload them to the EPS32.
platformio run --target buildfs
platformio run --target uploadfs
I wanted to create this same app using ESP32-IDF. I have hit a wall, in searching for a way to upload the files.
I read about mkspiffs, and created the .bin file. What I am curious about is can I use ESP32 download tool, to upload the .bin file, and if so what is the start of the SPIFFS address. I have tried 0x10000 & 0x110000, and when I run my app its still showing the old files, not the new ones.
What is the preferred way to upload files ?
I have have started playing with SPIFFS, and have my app showing the files I have uploaded.
I am using PlatformIO, and they have a neat feature where you create a "data" folder, and chuck whatever files you want in there.
Then you run the following commands, and it will upload them to the EPS32.
platformio run --target buildfs
platformio run --target uploadfs
I wanted to create this same app using ESP32-IDF. I have hit a wall, in searching for a way to upload the files.
I read about mkspiffs, and created the .bin file. What I am curious about is can I use ESP32 download tool, to upload the .bin file, and if so what is the start of the SPIFFS address. I have tried 0x10000 & 0x110000, and when I run my app its still showing the old files, not the new ones.
What is the preferred way to upload files ?
Re: Store static file in flash
kolban wrote:Yes sir. The following tool from igrr can be used to build a "SPIFFS" image from a local file system:
https://github.com/igrr/mkspiffs
Once built, this can then be "flashed" using esptool.py to the flash space that we are using for SPIFFs storage. For example, I am using 1MByte of storage for my SPIFFs area located at offset 3*1024*1024 to 4*1024*1024-1. I haven't gotten around to making up a partition table definition to "reserve" that space for SPIFFs and am "just using it" but as long as my app bin doesn't tread on it, I've been ok so far.
Hello sir,
Kindly give example how can i use this program to write to my spi flash partition at given starting address. I need to write one text file via serial/comport from windows machine. Can i use esp tool as well command line. ideally i want to do using c/c++ function call.
Re: Store static file in flash
Hello sir,
Can Any one give me example to uploading/ writing any data file or write key value on nvs partition after I do make flash to upload my code into OTA partition using any command line program. I saw before some one was uploading into fatfs flash partition web files using command line. Can esptool do this job.
Can Any one give me example to uploading/ writing any data file or write key value on nvs partition after I do make flash to upload my code into OTA partition using any command line program. I saw before some one was uploading into fatfs flash partition web files using command line. Can esptool do this job.
Who is online
Users browsing this forum: No registered users and 340 guests