ESP32P4开发板开发例程导入VSCODE问题
Posted: Fri Dec 20, 2024 8:25 am
你好:购买的开发板,用VSCODE可以编译下载helloworld。但是我想下载esp32-p4-function-ev-board中的example中的lvgl_demo_v9,不知道怎么导入到vscode中。直接打开后设置目标esp32p4后报错.请问怎么能正确导入下载后的例程。
Failed to set target esp32p4: non zero exit code 2
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'C:\esp32p4\esp-dev-kits-master\examples\esp32-p4-function-ev-board\examples\lvgl_demo_v9\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32p4, new sdkconfig will be created.
Running cmake in directory C:\esp32p4\esp-dev-kits-master\examples\esp32-p4-function-ev-board\examples\lvgl_demo_v9\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=C:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DIDF_TARGET=esp32p4 -DCCACHE_ENABLE=0 C:\esp32p4\esp-dev-kits-master\examples\esp32-p4-function-ev-board\examples\lvgl_demo_v9"...
-- Found Git: C:/Espressif/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1")
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe - 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: C:/Espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- git rev-parse returned 'fatal: not a git repository (or any of the parent directories): .git'
-- Could not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32p4
Dependencies lock doesn't exist, solving dependencies.
CMake Error at C:/Users/Administrator/esp/v5.3.2/esp-idf/tools/cmake/build.cmake:552 (message):
ERROR: Cannot establish a connection to the component registry. Are you
connected to the internet?
URL: https://components-file.espressif.com/c ... /lvgl.json
Call Stack (most recent call first):
C:/Users/Administrator/esp/v5.3.2/esp-idf/tools/cmake/project.cmake:710 (idf_build_process)
CMakeLists.txt:12 (project)
-- Configuring incomplete, errors occurred!
cmake failed with exit code 1, output of the command is in the C:\esp32p4\esp-dev-kits-master\examples\esp32-p4-function-ev-board\examples\lvgl_demo_v9\build\log\idf_py_stderr_output_16716 and C:\esp32p4\esp-dev-kits-master\examples\esp32-p4-function-ev-board\examples\lvgl_demo_v9\build\log\idf_py_stdout_output_16716
.
Failed to set target esp32p4: non zero exit code 2
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'C:\esp32p4\esp-dev-kits-master\examples\esp32-p4-function-ev-board\examples\lvgl_demo_v9\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32p4, new sdkconfig will be created.
Running cmake in directory C:\esp32p4\esp-dev-kits-master\examples\esp32-p4-function-ev-board\examples\lvgl_demo_v9\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=C:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DIDF_TARGET=esp32p4 -DCCACHE_ENABLE=0 C:\esp32p4\esp-dev-kits-master\examples\esp32-p4-function-ev-board\examples\lvgl_demo_v9"...
-- Found Git: C:/Espressif/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1")
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe - 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: C:/Espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- git rev-parse returned 'fatal: not a git repository (or any of the parent directories): .git'
-- Could not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32p4
Dependencies lock doesn't exist, solving dependencies.
CMake Error at C:/Users/Administrator/esp/v5.3.2/esp-idf/tools/cmake/build.cmake:552 (message):
ERROR: Cannot establish a connection to the component registry. Are you
connected to the internet?
URL: https://components-file.espressif.com/c ... /lvgl.json
Call Stack (most recent call first):
C:/Users/Administrator/esp/v5.3.2/esp-idf/tools/cmake/project.cmake:710 (idf_build_process)
CMakeLists.txt:12 (project)
-- Configuring incomplete, errors occurred!
cmake failed with exit code 1, output of the command is in the C:\esp32p4\esp-dev-kits-master\examples\esp32-p4-function-ev-board\examples\lvgl_demo_v9\build\log\idf_py_stderr_output_16716 and C:\esp32p4\esp-dev-kits-master\examples\esp32-p4-function-ev-board\examples\lvgl_demo_v9\build\log\idf_py_stdout_output_16716
.