TD-er wrote: ↑02 Apr 2024, 12:41
There is a number of things showing in the filename:
- ESP32C3 -> ESP type/model
- LittleFS -> Showing the file system type, but since recently it also signifies the SDK version I used to build it (more on this later)
- CDC -> Allows to use ESPEasy console on those ESP32 boards which have native USB port instead of (or next to) some external USB to serial chip
- Factory -> You need a file with "factory" in the name to flash ESP32-boards via serial as this also includes the bootloader partition, flash starting at address 0.
Now what you were missing in the filename you picked was "ETH" to show it supports Ethernet.
This brings us also back to the "LittleFS" part as for boards which are not using the "ESP32-classic" to have Ethernet, you need to have an Ethernet chip connected via SPI to the ESP.
There are 2 types of interfaces for Ethernet chips:
- RMII
- SPI
The RMII interface is not present on ESP32-S2/-S3/-C2/-C3/-C6 etc.
Thus those can only be used with a SPI connected Ethernet chip.
However support for SPI Ethernet is only present in ESP-IDF5.x, which is the later/latest SDK.
This SDK also does not allow me to use the old SPIFFS file system format, only LittleFS.
So when implementing support for ESP-IDF5.x I made a simple distinction in the builds:
- LittleFS builds => ESP-IDF5.x
- SPIFFS builds (thus not having "LittleFS" in the name) => ESP-IDF 4.4
So for your board you _need_ to have "LittleFS" in the name and "ETH"
The latest build does appear to have some issues with ESP32-C3/-C6 on LittleFS builds, so I am working on this right now.
Also there isn't an "energy" build for ESP32-C3 with Eth now.
I will make you a build for this as soon as I have fixed this and will send you a link via a message when I have it ready.
Right now I think it is best to keep this build on your module as it will make it much easier for you to upload the new build when ready. (the WiFi credentials are also stored outside the file system, so it will format the file system and create new default settings including the current WiFi credentials)
I think I will leave out the "CDC" part for your specific build as you don't have any native USB on that board and it seems to be the part causing the issues I'm now looking into.