Closed
Description
Hello there.
It seems the branch #idf-release/v4.0 got deleted a few hours ago.
I was working yesterday with this branch and everything worked ok.
However, i cant get anything to compile with this new branch #idf-master
- Is #idf-release/v4.0 coming back?
- What esp-idf version/release am i supossed to use to work with #idf-master?
Best Regards, Enrique.
Metadata
Metadata
Assignees
Labels
No labels
Activity
h2zero commentedon Apr 1, 2021
Looks like #idf-master branch is compiled using espressif/esp-idf@2bfdd03
castorw commentedon Apr 2, 2021
Hi there, same here. My project is now broken, since it relied on the mentioned branch of arduino-esp32. Using idf-master results in:
failed to resolve component 'tinyusb'
error.Can anybody please explain why the branch was removed and how to get this working again?
nlac commentedon Apr 2, 2021
Looking into this header in branch
idf-master
, there are two rows:#define CONFIG_ARDUINO_IDF_COMMIT "1067b2870"
#define CONFIG_ARDUINO_IDF_BRANCH "master"
Until now, it was a working reference for me (meaning branch
idf-master
is compiled using ESP-IDF commit "1067b2870") but it is not any more. For example esp_littlefs is not recent in that commit but branchidf-master
has references to that.VioletGiraffe commentedon Apr 2, 2021
According to various discussions I've found,
#idf-release/v4.0
is required to compile with-std=c++17
(and it sucks we even have to fiddle so much to get C++17 to work in 2021!). Is there a current (and, preferably, future-proof) solution for C++17 on ESP32 + Arduino framework?chegewara commentedon Apr 2, 2021
Im not saying it is good or bad that some branches has been deleted, but you have to understand that all those branches were development branches and no longer maintained.
VioletGiraffe commentedon Apr 2, 2021
I understand that was a development branch, obviously we as developers shouldn't have to need that branch, we just need our client code to work (preferably with the stable release version of the platform).
The current compiler itself is GCC 8.2.0 which is good enough (it knows
-std=c++2a
), but the standard library is missing stuff and I can't get it all to compile correctly. For example, I can't findstd::size
anywhere. Any hints for me on how to fix it would be highly appreciated!nlac commentedon Apr 3, 2021
I'm really wondering if someone could suggest here the most recent pair of commit numbers of arduino-esp32 and esp-idf that surely work together for a new "arduino_as_component" project? I'm over days of trials of combinations but i always run into "Failed to resolve component *'" (ethernet, arduino_tinyusb etc) issues when trying to build the simplest "arduino-as- component" hello world project.
chegewara commentedon Apr 3, 2021
I cant say it is most recent, because its at least few months old, but works good to me in commercial app:
espressif/esp-idf@b015061
https://github.com/espressif/arduino-esp32/tree/71e2142c7f73a043331c42ecdd900b3c2c81b84a
The only thing you have to do is to edit CMakeLists.txt in arduino-esp32, to fix issue with 1 or 2 libraries:
https://github.com/Othernet-Project/Dreamcatcher/blob/master/CMakeLists.txt_arduino-esp32
[-]Missing #idf-release/v4.0 branch[/-][+]Missing branch #idf-release/v4.0[/+]marcovannoord commentedon Apr 4, 2021
Because i had to get this working for a commercial application too, i have forked a recent fork of this repo, that still had the #idf-release/4.0 branch available.
https://github.com/marcovannoord/arduino-esp32/tree/idf-release/v4.0
Since i rely on this 4.0 branch for an esp32-arduino build using PlatformIO, to get the project to build,
i just replace:
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#idf-release/v4.0
with:
platform_packages = framework-arduinoespressif32 @ https://github.com/marcovannoord/arduino-esp32.git#idf-release/v4.0
in platformio.iniVioletGiraffe commentedon Apr 4, 2021
@marcovannoord, you're the savior! And what are your
framework
andplatform
set to inplatformio.ini
?marcovannoord commentedon Apr 4, 2021
I've left those at:
VioletGiraffe commentedon Apr 4, 2021
This is what I've tried as per your advice, and it doesn't work:
Specifically, it compiles but still uses the current release version of the build tools (ancient GCC 5.2.0). I also didn't notice PlatformIO downloading anything new from git.
According to the docs, the above should be correct: https://docs.platformio.org/en/latest/platforms/espressif32.html#using-arduino-framework-with-staging-version
I've issued the "Update all" command and it also didn't download anything. Odd. Nothing changed after I added
platform_packages = framework-arduinoespressif32 @ https://github.com/marcovannoord/arduino-esp32.git#idf-release/v4.0
.marcovannoord commentedon Apr 4, 2021
Hmm that's odd, after replacing the platform_packages, i did notice PlatformIO downloading the other branch, and also in the Github Actions script, i see that it now builds successfully again (GH actions was how i first noticed my broken build, since it does not cache any repositories, and will always start with a clean slate).
Perhaps removing the framework-arduinoespressif32 from the .platformio\packages folder (in your home folder )and cleaning the .pio folder in the project directory will trigger a re-download?
21 remaining items