Re: esp32 support in zephyr
Leandro Pereira
Hello,
On 06/29/2017 11:17 PM, Kitty(chun hua) Jiang wrote:
You'll also need to set a few environment variables:
export ZEPHYR_GCC_VARIANT="espressif"
export ESP_IDF_PATH=/path/to/esp-idf
export ESPRESSIF_TOOLCHAIN_PATH=/path/to/xtensa-esp32-elf/
After setting these, you'll be able to build some samples. The port is pretty crude at the moment, but the very basics are already working. These changes were merged and are on the official Zephyr repository, in the master branch, so there's no need to use the other repos/branches you listed. (This might not be the case as the port matures and more things get supported, of course.)
If you're still getting compile errors even with these environment variables set, then it's most likely a bug.
To flash, "make flash" should work, but please read the commit message for commit f0b4e174d738c94703 first.
Cheers,
Leandro
On 06/29/2017 11:17 PM, Kitty(chun hua) Jiang wrote:
But when I tried to build a hello world for esp32 board, it always failed.I'm still working on the documentation, but right now you'll need both esp-idf (for headers and the HAL library) and the ESP32 toolchain as distributed by Espressif. Building with the Zephyr toolchain is currently unsupported.
You'll also need to set a few environment variables:
export ZEPHYR_GCC_VARIANT="espressif"
export ESP_IDF_PATH=/path/to/esp-idf
export ESPRESSIF_TOOLCHAIN_PATH=/path/to/xtensa-esp32-elf/
After setting these, you'll be able to build some samples. The port is pretty crude at the moment, but the very basics are already working. These changes were merged and are on the official Zephyr repository, in the master branch, so there's no need to use the other repos/branches you listed. (This might not be the case as the port matures and more things get supported, of course.)
If you're still getting compile errors even with these environment variables set, then it's most likely a bug.
To flash, "make flash" should work, but please read the commit message for commit f0b4e174d738c94703 first.
Cheers,
Leandro