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

Can't build for esp32 board #48

Open
Grumskiz opened this issue Jul 3, 2021 · 0 comments
Open

Can't build for esp32 board #48

Grumskiz opened this issue Jul 3, 2021 · 0 comments

Comments

@Grumskiz
Copy link

Grumskiz commented Jul 3, 2021

I have been using the Eclipse Plugin successfully for the disco_l475_iot1 board.
Now I would like to use the esp32.

I followed the documentation for this board to set up the espressif toolchain.
I have verified that I am able to build and flash samples using west.
Zephyr, the SDK, the espressif toolchain, west, and Eclipse are all up-to-date versions and I'm running Linux.

Unfortunately, it seems that the Eclipse Plugin does not support this toolchain variant.
Naive use of the standard Zephyr SDK will fail like this:
/opt/zephyr-sdk/xtensa//xtensa-zephyr-elf/bin/xtensa-zephyr-elf-gcc not found - Please check your toolchain installation

It appears that:

  • the build process looks for the ESP32 toolchain in the main SDK folder, which is not the correct place
  • it incorrectly concatenates strings, or tries to select a subfolder that is an empty string

I tried setting up a Custom Toolchain in the project preferences, with ZEPHYR_TOOLCHAIN_VARIANT set to espressif and the toolchain path pointing to the correct location.
This build setting is silently ignored and erased by the plugin and it will default back to the standard Zephyr SDK option, yielding the same error as above.

The failed builds also break the build system somewhat. It's required to clean the project before rebuilding, otherwise the build system will crash with a NullPointerException.

I'd be happy to try out more, but I'm not sure where to go from here.

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

1 participant