I ran pio platform show expressif32 with the following results
Package framework-espidf
Type: framework
Requirements: ~2.210.0
Installed: Yes
Version: 2.210.0
Original version: 2.10
Description: Espressif IoT Development Framework with the ESP32
This seems to show version 2.210.0 version installed? However, I still do not have updated files. Can someone please give me some input here.
My next step is to manually install the latest version although with all of the automatic triggers of PlatformIO (like regenning c_cpp_properties), I’m not all that confident that this will work.
in this specific file: components/bt/bluedroid/api/include/esp_gatt_defs.h
in version installed by PlatformIO, last line of file = line 395 (#endif /* ESP_GATT_DEFS_H */)
in version on GitHub, last line of file = 462 (#endif /* ESP_GATT_DEFS_H */)
fyi - I manually installed latest esp-idf (or tried). changed the original directory name and then installed new version into new directory with original name. Unfortunately PlatformIO tracked my renaming of the original file and changed the c_cpp_properties.json to the renamed location. I assume I can get past that by simply overwriting the original files but haven’t got to that step yet
Hm, are you sure we are talking about version 2.1? Because there is no line #462 in 2.1 release, this line only appeared in the master branch a month ago.
Am I missing something?
No you are not missing anything. I guess I was missing the point and looking at the ‘master’ files and not the official release 2.1 so this is my error. Sorry about that.
That said, can I use the most updated code? If so, by overwriting the files as I was going to try?
It should work unless there are critical changes in structure or component build logic. Anyway, to update the framework you can just replace all source files in framework-espidf folder (package.json file must be the same).
Unfortunately, overwriting didn’t work. As soon as I started VS Code, PlatformIO downloaded all of the other files again.
Any other options? I’m really trying to stick with PlatformIO and not have to move to the ESP-IDF but need some of this latest release stuff primarily for the BTE support
Have you left the original package.json file? The version mismatch in the platform.json and package.json in the framework-espidf folder will cause PlatformIO to rewrite your changes.