Skip to content

Missing branch #idf-release/v4.0 #4998

Closed
@enriquewph

Description

@enriquewph

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.

Activity

h2zero

h2zero commented on Apr 1, 2021

@h2zero
Contributor

Looks like #idf-master branch is compiled using espressif/esp-idf@2bfdd03

castorw

castorw commented on Apr 2, 2021

@castorw

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

nlac commented on Apr 2, 2021

@nlac

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 branch idf-master has references to that.

VioletGiraffe

VioletGiraffe commented on Apr 2, 2021

@VioletGiraffe

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

chegewara commented on Apr 2, 2021

@chegewara
Contributor
  1. idf v4.0 is not a long term release, so the next arduino version (v2.0.x) will be based on v4.3 most likely (idf-release/v4.2 has been merged to master recently)
  2. esp-idf API is based on C++11, thats why arduino is also based on that version, even if it is possible to enable c++17 in idf projects

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

VioletGiraffe commented on Apr 2, 2021

@VioletGiraffe

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 find std::size anywhere. Any hints for me on how to fix it would be highly appreciated!

nlac

nlac commented on Apr 3, 2021

@nlac

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

chegewara commented on Apr 3, 2021

@chegewara
Contributor

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

changed the title [-]Missing #idf-release/v4.0 branch[/-] [+]Missing branch #idf-release/v4.0[/+] on Apr 4, 2021
marcovannoord

marcovannoord commented on Apr 4, 2021

@marcovannoord

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.ini

VioletGiraffe

VioletGiraffe commented on Apr 4, 2021

@VioletGiraffe

@marcovannoord, you're the savior! And what are your framework and platform set to in platformio.ini?

marcovannoord

marcovannoord commented on Apr 4, 2021

@marcovannoord

I've left those at:

platform = espressif32
framework = arduino, espidf 
VioletGiraffe

VioletGiraffe commented on Apr 4, 2021

@VioletGiraffe

This is what I've tried as per your advice, and it doesn't work:

platform_packages = framework-arduinoespressif32 @ https://github.com/marcovannoord/arduino-esp32.git#idf-release/v4.0
platform = espressif32
framework = arduino
board = esp32dev

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

marcovannoord commented on Apr 4, 2021

@marcovannoord

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Missing branch #idf-release/v4.0 · Issue #4998 · espressif/arduino-esp32