-
Notifications
You must be signed in to change notification settings - Fork 157
toolchain: Add Espressif's ESP32 and ESP32S2 support #426
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
toolchain: Add Espressif's ESP32 and ESP32S2 support #426
Conversation
@galak, not sure if the buildkite error is indeed an error. Would you check? |
@sylvioalves I have re-triggered the CI. It should succeed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sylvioalves Have you verified that this works with the ESP32? IIRC, there were some issues earlier without applying the ESP32-specific patches for gcc, newlib and others.
@stephanosio @galak We analyzed all the patches in Espressif's gcc/gdb/newlib repository and concluded that we can have it as is (without patches). We will submit some patches upstream eventually, but there is no blocking patch at all to have it integrated in Zephyr. |
Do you mean the "ESP32 toolchain" built using the changes in this PR is not able to build working binaries for the ESP32 SoC? If so, this PR should be considered a draft until it can.
If you have ESP32-specific patches for the binutils, gcc and newlib, please create a pull request in the relevant Zephyr fork repositories and update this PR to reference them (you can set For example, if you have a patch for gcc:
|
@stephanosio Yes, current Zephyr's main branch can't be build using the toolchain from this PR. I am working out a Zephyr's PR to enabled this (I have it all working locally already). |
3ea778e
to
595d052
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please specify the source (URL) and version of the xtensa_espressif_esp32.tar.gz
and xtensa_espressif_esp32s2.tar.gz
added here in the commit message.
Also noting that this needs to be tested against zephyrproject-rtos/zephyr#43534. |
I added the github URL in the commit message. The .tar.gz file was manually created. |
89756fb
to
8769867
Compare
@sylvioalves Thanks. Please add the version/tag or commit (in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok overall.
DNM until the build failures described in zephyrproject-rtos/zephyr#43534 (review) are resolved, in case they require Zephyr SDK-side changes.
Postponing this to 0.14.1, which will be a quick follow-up to 0.14.0 (multi-platform SDK) in a month or so. |
8769867
to
7e60eb9
Compare
Only added commit sha into commit message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There has been a slight change to the way the toolchain components are referenced in the configs (#444).
Could you update the PR as follows?
7e60eb9
to
19948b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. It looks like the GDB source configs were duplicated in the xtensa-espressif_esp32_zephyr-elf.config
(specified GDB instead of Binutils at the top).
Also I found a few extra changes to be made; it would be good to address them while we are at it.
Thanks for pointing that out. |
77ed6b0
to
a626957
Compare
Add all necessary changes to allow ESP32 toolchain integration. Overlay URL: https://github.com/espressif/xtensa-overlays/tree/master/xtensa_esp32 commit: 30d30463d2bd917d2c504122a887aff00b27f858 Signed-off-by: Sylvio Alves <[email protected]>
Add all necessary changes to allow ESP32S2 toolchain integration. Overlay URL: https://github.com/espressif/xtensa-overlays/tree/master/xtensa_esp32s2 commit: ac00ec5abf21102578d9afde22ffffd46929feaf Signed-off-by: Sylvio Alves <[email protected]>
Add CI content. Signed-off-by: Sylvio Alves <[email protected]>
a626957
to
714cc8b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok overall.
Pending tests.
Ran full twister build on the |
No description provided.