ESP32 files upload
ESP32 files upload
I usually use arduino IDE and I'm starting to learn ESP-IDF. To upload files to the ESP32 fatfs or spiffs on the Arduino IDE I use the sketch uploader. How is this done on the ESP-IDF?
Thank you
Thank you
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32 files upload
When using the command line, 'idf.py flash', usually. Best invoked as 'idf.py flash monitor' in a separate terminal to get console output. From there, you can use things like ctrl-T-ctrl-F to reflash and other fun stuff.
Re: ESP32 files upload
Thank you, I know how to flash the ESP32. But what I mean is how can I upload files to the fatfs or spiffs. In arduino IDE that is easy with the filesystem uploader plug in. And I do not find any example of that. Do you know how to do this?
Thank you
Thank you
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32 files upload
You do that by adding a line to the CMakeLists.txt file. What line depends on the filesystem, but here is how you do it for fatfs.
Re: ESP32 files upload
When running the fatfsgen example Cmake does not recognize fatfs_create_spiflash_image nor fatfs_create_rawflash_image. I'm using the 4.4.1 version. Does this happen also to you?
Thank you
Thank you
Re: ESP32 files upload
First, you need to install the file system uploader plugin in Arduino IDE and then you can upload files. you can refer to this article:
https://microcontrollerslab.com/install ... de-spiffs/
For esp-idf, you can refer to this:
https://docs.espressif.com/projects/esp ... piffs.html
https://microcontrollerslab.com/install ... de-spiffs/
For esp-idf, you can refer to this:
https://docs.espressif.com/projects/esp ... piffs.html
I create ESP32 tutorials and Projects using ESP-IDF https://esp32tutorials.com/
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32 files upload
Yes, it does spit out an error.
Momin, but I am using fatfs. And the link you have posted is about spiffs on esp-idf.
Momin, but I am using fatfs. And the link you have posted is about spiffs on esp-idf.
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32 files upload
Can you at least post the error, then? Are you also using ESP-IDF 4.4.1, and not only the example from that?
Re: ESP32 files upload
I have updated to the master version and it works.
Thanks for your help
Thanks for your help
Who is online
Users browsing this forum: No registered users and 396 guests