Skip to content
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

How to switch the toolchain version on Windows esp-idf? #27

Closed
wuyuanyi135 opened this issue Jun 4, 2022 · 4 comments
Closed

How to switch the toolchain version on Windows esp-idf? #27

wuyuanyi135 opened this issue Jun 4, 2022 · 4 comments

Comments

@wuyuanyi135
Copy link

Hello, I am using esp-idf 4.4.1 and I want to test the recently released 2022r1-rc1 toolchain. Is there any guide to make the idf.py using the new toolchain instead of the one shipped with it?

@igrr
Copy link
Member

igrr commented Jun 4, 2022

Hi @wuyuanyi135,
esp2022-r1 toolchain is not compatible with IDF v4.4. To support GCC 11, we had to make multiple significant changes, including breaking ones. They will be released as part of IDF v5.0.
v4.4 release branch will continue to use the toolchain based on GCC 8.

(Generally though, trying a different toolchain involves several steps: 1) Download the new toolchain release; 2) Unpack it into a directory of your choice; 3) prepend the absolute path of the resulting bin subdirectory to your PATH variable using set or export command; 4) do idf.py fullclean; 5) build the project again.)

@wuyuanyi135
Copy link
Author

@igrr Thanks for your detailed instructions. Does the current IDF v5.0 branch already support GCC11?

@igrr
Copy link
Member

igrr commented Jun 4, 2022

We have just merged support for GCC 11 into IDF internally. It might take a few days for the code to get synced to Github, as currently there are some failing tests in our CI pipeline, we'll have to fix them first.

@wuyuanyi135
Copy link
Author

Much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants