-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Missing branch #idf-release/v4.0 #4998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looks like #idf-master branch is compiled using espressif/esp-idf@2bfdd03 |
Hi there, same here. My project is now broken, since it relied on the mentioned branch of arduino-esp32. Using idf-master results in: Can anybody please explain why the branch was removed and how to get this working again? |
Looking into this header in branch Until now, it was a working reference for me (meaning branch |
According to various discussions I've found, |
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. |
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). |
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. |
I cant say it is most recent, because its at least few months old, but works good to me in commercial app: The only thing you have to do is to edit CMakeLists.txt in arduino-esp32, to fix issue with 1 or 2 libraries: |
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. |
@marcovannoord, you're the savior! And what are your |
I've left those at:
|
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 |
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). |
To demonstrate a working version, i have placed |
@marcovannoord, thank you very much! It does indeed work. Turns out, I didn't see the new platform being downloaded because it doesn't happen when you build the project or issue "Platformio: Update all" command; it happens right away as soon as PIO parses the changed .ini file (which, apparently, it does as you edit it).
And now all my build errors due to non-C++17-conformant compiler and standard library are gone! Also, thank you for the Github Actions script, I'll use it as a template for all my PlatformIO projects (which currently use Travis CI). |
UPDATE: I'm still trying @chegewara solution, but platform io clones whatever it wants and not the full repo.. i'm working on it. |
Well, in my case posted links are actually from old idf-release/v4.2 and idf master commit compatible with it. It is because i am using it with S2. |
looks like #idf-master branch got deleted for version 2.0.0 #4996 as of now, building using a previously forked repository seems to work ok, but things are moving fast.. cant wait to see what 2.0.0 brings to us! closing this issue.
|
I hope it brings C++17 support out of the box without having to spend 2 days to get it working using unofficial forks! |
Same issue here. I used marcovannoord fork, but I get the following error:
Hope this gets fixed soon.... |
Hi - would you be able to share your working configuration of platformio for a esp32-s2 ardiuno+esp-idf? I was fallowing your advices but could get it working. |
I did not try to use S2 with platformio, sorry. |
Is anyone had any issue with ESP32 not defined following marcovannoord solution? I noticed that ESP32 is defined in arduino only framework (without platform_packages). I noticed also that it should be already defined here: Is it supposed to be called when I click build in VSCODE using PlatformIO? Thank you! |
Hmm i'm not sure if i follow entirely, but building using Platformio using this config should do all the work for you, without having to define anything else:
|
I had the same observations. You may wanna use :
at your platformio.ini |
@marcovannoord Thanks for providing the branch. Does all of this mean that there is no combination of versions (arduino/idf) that work with PIO? If I don't care what IDF version PIO uses, is there a compatible arduino version I can use instead of the forked 4.0? |
yes. start with a blank esp-idf project: platform = [email protected]
board = esp32dev
framework = espidf now make sure you clone arduino-esp32 into the components folder, you should add this as a submodule: git submodule add https://github.com/espressif/arduino-esp32.git ./components/arduino
git submodule update --init lastly, create a file named: sdkconfig.defaults in the root directory of the project. # Override some defaults to enable Arduino framework
CONFIG_ENABLE_ARDUINO_DEPENDS=y
CONFIG_AUTOSTART_ARDUINO=y
CONFIG_ARDUINO_RUN_CORE1=y
CONFIG_ARDUINO_RUNNING_CORE=1
CONFIG_ARDUINO_EVENT_RUN_CORE1=y
CONFIG_ARDUINO_EVENT_RUNNING_CORE=1
CONFIG_ARDUINO_UDP_RUN_CORE1=y
CONFIG_ARDUINO_UDP_RUNNING_CORE=1
CONFIG_DISABLE_HAL_LOCKS=y
CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_ERROR=y
CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL=1
CONFIG_ARDUHAL_PARTITION_SCHEME_DEFAULT=y
CONFIG_ARDUHAL_PARTITION_SCHEME="default"
CONFIG_AUTOCONNECT_WIFI=y
CONFIG_ARDUINO_SELECTIVE_WiFi=y
CONFIG_MBEDTLS_PSK_MODES=y
CONFIG_MBEDTLS_KEY_EXCHANGE_PSK=y it works ok, to access menuconfig run: pio run -t menuconfig all this should get you a working project using ESP-IDF v4.3.1 + Arduino as a component. to switch arduino component to a custom release <example: 2.0.1-RC1>, do this: cd components/arduino
git checkout 2.0.1-RC1 |
@enriquewph Woah! I never thought to do it that way. I guess I just assumed I had to do it the PIO way. Thanks! Edit: Oops!. Looks like only idf 4.4 is supported by arduino-esp32... |
Yes, IDF 4.4 is now supported. |
This is how my PlatformIO build was set up, and it worked half a year ago. I did not need to invoke
|
Hi guys! I am having a very similar/ the same problem - since sometime around August 2022 I cannot initialise my ESP32 Arduino project. I can still build and upload it on machines with the project initialised already. The project configuration:
When I try to build the project, PIO spits out this:
After some digging, figured out that the error likely comes back to this. I have tried playing around with the versions of all the packages and platform but without any luck. Any ideas? Thanks for the help! |
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
Best Regards, Enrique.
The text was updated successfully, but these errors were encountered: