I downloaded amazon-freertos and I can build from the root folder with idf.py -DVENDOR=espressif -DBOARD=esp32_wrover_kit -DCOMPILER=xtensa-esp32 build
but if I cd vendors/espressif/esp-idf/examples/get-started/hello_world
and try to build, I get Failed to resolve component 'freertos'.
Executing action: all (aliases: build)
Running cmake in directory/dir/esp32/amazon-freertos/vendors/espressif/esp-idf/examples/get-started/hello_world/build
Executing "cmake -G 'Unix Makefiles' -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DVENDOR=espressif -DBOARD=esp32_wrover_kit -DCOMPILER=xtensa-esp32 -DCCACHE_ENABLE=0/dir/esp32/amazon-freertos/vendors/espressif/esp-idf/examples/get-started/hello_world"...
-- Found Git: /usr/local/bin/git (found version "2.30.1")
-- Component directory/dir/esp32/amazon-freertos/vendors/espressif/esp-idf/components/mbedtls does not contain a CMakeLists.txt file. No component will be added
-- Component directory/dir/esp32/amazon-freertos/vendors/espressif/esp-idf/components/unity does not contain a CMakeLists.txt file. No component will be added
-- IDF_TARGET not set, using default target: esp32
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler:/dir/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler:/dir/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler:/dir/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
CMake Error at/dir/esp32/amazon-freertos/vendors/espressif/esp-idf/tools/cmake/build.cmake:188 (message):
Failed to resolve component 'freertos'.
Call Stack (most recent call first):
/dir/esp32/amazon-freertos/vendors/espressif/esp-idf/tools/cmake/build.cmake:214 (__build_resolve_and_add_req)
/dir/esp32/amazon-freertos/vendors/espressif/esp-idf/tools/cmake/build.cmake:215 (__build_expand_requirements)
/dir/esp32/amazon-freertos/vendors/espressif/esp-idf/tools/cmake/build.cmake:215 (__build_expand_requirements)
/dir/esp32/amazon-freertos/vendors/espressif/esp-idf/tools/cmake/build.cmake:432 (__build_expand_requirements)
/dir/esp32/amazon-freertos/vendors/espressif/esp-idf/tools/cmake/project.cmake:352 (idf_build_process)
CMakeLists.txt:6 (project)
I get the same error with other commands, such as idf.py set-target esp32
and idf.py menuconfig
.
- idf.py ESP-IDF v4.2.2-276-g4e4142ef8
- amazon-freertos - main/88606723d153a21321e20a5c670b9774a1e98748
- macOS Monterey
- python 3.9.12
Any ideas about what Iām missing?