I have just setup yesterday VSCode with PlatformIO to code on a TinyPico (ESP32) using ESP-IDF framework. New project, chose my board and IDF framework not arduino. I had but cleared ever since confusion regarding esp-idf versioning by reading on the forum and understood that currently the platform espressif32 (latest version 2.0.0) uses as framework ESP-IDF 4.1.
The issue is, I have been having weird missing functions from includes of examples based on ESP-IDF 4.1.
Typically, examining “esp_vfs_dev.h” from the official release of ESP-IDF 4.1 shows 127 lines of code with two additional functions that i cannot find in my “esp_vfs_dev.h” which shows 89 lines (in my platformIO environment).
Further examination shows it’s actually"esp_vfs_dev.h" from ESP-IDF 3.3 that I have in my project. How is that possible ? Am I doing something wrong here ?
As can be seen in the bintray and version code, the latest framework-espidf-3.40100.200827.tar.gz was uploaded 2020, August 27th.
The esp_vfs_dev.h file has a change from 2020, August 24th. So yes, in this the package didn’t get that updated file. File information says it was created on August 21.
Thanks for the input.
I understand, is there anyway automated way to verify if all files are updated or not ? In case this particular one isn’t the only one .
Hi @y.ahaggach! Could you please point me where I can find the official esp_vfs_dev.h with 128 lines of code? The ESP-IDF v4.1 points to the 5ef1b390026270503634ac3ec9f1ec2e364e23b2 commit and if we browse the framework files in that commit, the esp_vfs_dev.h file only contains 89 lines of code. I even downloaded esp-idf-v4.1.zip from the assets on the github release page and the esp_vfs_dev.h file is the same.
The file on the v4.1tag has 89 lines of code (see esp_vfs_dev.h).
The file on the realese/v4.1branch has 127 lines of code (see esp_vfs_dev.h).
The v4.1branch basically contains an intermediate state towards the next maintenance release (probably v4.1.1). So it has not been officially released. I would thus argue that the current PlatformIO package is correct and that the OP will have to wait for the next official release.
It should be possible to switch to the tag v4.1 in Espressif’s GitHub and the navigate to examples that are compatible with the official release.