Skip to content

[ESP32] samples blinky / gpio / custom board #36806

Answered by b0661
cederom asked this question in Q&A
Discussion options

You must be logged in to vote

would like to add new board to Zephyr that would allow straightforward build just using -b my_custom_board switch. The problem here is that IDF_TARGET is set to my_custom_board while toolchain only recognises esp as valid target.

I had the same problem. If you copied your custom board definiton from Zephyr boards/xtensa/esp32 you may use this boards/xtensa/my_custom_board/CMakeLists.txt. It fixes IDF_TARGET and assures the Zepyhr Python version is used. I followed the Custom Board, Devicetree and SoC definitons documentation.

# SPDX-License-Identifier: Apache-2.0

if(CONFIG_BOOTLOADER_ESP_IDF)
  include(ExternalProject)

  ## we use hell-world project, but I think any can be used.
  set…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@cederom
Comment options

Answer selected by cederom
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
platform: ESP32 Espressif ESP32
3 participants
Converted from issue

This discussion was converted from issue #36789 on July 08, 2021 13:03.