SDSPI fix for ESP32-C5: correct API v5.5, CMake dependencies, pin mapping

This commit is contained in:
Clawdia
2026-05-09 17:59:43 +02:00
parent 240a374148
commit 913b33d839
1519 changed files with 210337 additions and 610 deletions
@@ -0,0 +1,16 @@
Command: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/home/claw/.espressif/python_env/idf5.5_py3.13_env/bin/python -DESP_PLATFORM=1 -DIDF_TARGET=esp32c5 -DCCACHE_ENABLE=0 /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw
Traceback (most recent call last):
File "/home/claw/esp/esp-idf/components/esp_rom/gen_gdbinit.py", line 72, in <module>
gdbinit_lines = generate_gdbinit_rom_add_symbols(target)
File "/home/claw/esp/esp-idf/components/esp_rom/gen_gdbinit.py", line 32, in generate_gdbinit_rom_add_symbols
raise EnvironmentError(
'ESP_ROM_ELF_DIR environment variable is not defined. Please try to run IDF "install" and "export" scripts.')
OSError: ESP_ROM_ELF_DIR environment variable is not defined. Please try to run IDF "install" and "export" scripts.
CMake Warning at /home/claw/esp/esp-idf/tools/cmake/gdbinit.cmake:52 (message):
Error while generating esp_rom gdbinit
Call Stack (most recent call first):
/home/claw/esp/esp-idf/tools/cmake/project.cmake:356 (__generate_gdbinit)
/home/claw/esp/esp-idf/tools/cmake/project.cmake:974 (__project_info)
CMakeLists.txt:4 (project)
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja flash
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja clean
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1,12 @@
Command: ninja all
CMake Error at /home/claw/esp/esp-idf/tools/cmake/build.cmake:328 (message):
Failed to resolve component 'sdspi' required by component 'main': unknown
name.
Call Stack (most recent call first):
/home/claw/esp/esp-idf/tools/cmake/build.cmake:371 (__build_resolve_and_add_req)
/home/claw/esp/esp-idf/tools/cmake/build.cmake:685 (__build_expand_requirements)
/home/claw/esp/esp-idf/tools/cmake/project.cmake:740 (idf_build_process)
CMakeLists.txt:4 (project)
ninja: error: rebuilding 'build.ninja': subcommand failed
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1 @@
Command: ninja all
@@ -0,0 +1,51 @@
Command: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/home/claw/.espressif/python_env/idf5.5_py3.13_env/bin/python -DESP_PLATFORM=1 -DIDF_TARGET=esp32c5 -DCCACHE_ENABLE=0 /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw
-- Existing sdkconfig '/home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/sdkconfig' renamed to '/home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/sdkconfig.old'.
-- Found Git: /usr/bin/git (found version "2.47.3")
-- Minimal build - OFF
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/claw/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/claw/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/bin/riscv32-esp-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: /home/claw/.espressif/tools/riscv32-esp-elf/esp-14.2.0_20241119/riscv32-esp-elf/bin/riscv32-esp-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32c5
-- Project sdkconfig file /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/sdkconfig
-- Adding linker script /home/claw/esp/esp-idf/components/riscv/ld/rom.api.ld
-- Found Python3: /home/claw/.espressif/python_env/idf5.5_py3.13_env/bin/python (found version "3.13.5") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- USING O3
-- App "v2x_sniffer" version: 240a374-dirty
-- Adding linker script /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/build/esp-idf/esp_system/ld/sections.ld.in
-- Adding linker script /home/claw/esp/esp-idf/components/esp_rom/esp32c5/ld/esp32c5.rom.ld
-- Adding linker script /home/claw/esp/esp-idf/components/esp_rom/esp32c5/ld/esp32c5.rom.api.ld
-- Adding linker script /home/claw/esp/esp-idf/components/esp_rom/esp32c5/ld/esp32c5.rom.rvfp.ld
-- Adding linker script /home/claw/esp/esp-idf/components/esp_rom/esp32c5/ld/esp32c5.rom.wdt.ld
-- Adding linker script /home/claw/esp/esp-idf/components/esp_rom/esp32c5/ld/esp32c5.rom.systimer.ld
-- Adding linker script /home/claw/esp/esp-idf/components/esp_rom/esp32c5/ld/esp32c5.rom.version.ld
-- Adding linker script /home/claw/esp/esp-idf/components/esp_rom/esp32c5/ld/esp32c5.rom.phy.ld
-- Adding linker script /home/claw/esp/esp-idf/components/esp_rom/esp32c5/ld/esp32c5.rom.coexist.ld
-- Adding linker script /home/claw/esp/esp-idf/components/esp_rom/esp32c5/ld/esp32c5.rom.net80211.ld
-- Adding linker script /home/claw/esp/esp-idf/components/esp_rom/esp32c5/ld/esp32c5.rom.pp.ld
-- Adding linker script /home/claw/esp/esp-idf/components/esp_rom/esp32c5/ld/esp32c5.rom.libc.ld
-- Adding linker script /home/claw/esp/esp-idf/components/esp_rom/esp32c5/ld/esp32c5.rom.libc-suboptimal_for_misaligned_mem.ld
-- Adding linker script /home/claw/esp/esp-idf/components/esp_rom/esp32c5/ld/esp32c5.rom.newlib.ld
-- Adding linker script /home/claw/esp/esp-idf/components/esp_rom/esp32c5/ld/esp32c5.rom.heap.ld
-- Adding linker script /home/claw/esp/esp-idf/components/soc/esp32c5/ld/esp32c5.peripherals.ld
-- Components: app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_bootloader_format esp_coex esp_common esp_driver_ana_cmpr esp_driver_bitscrambler esp_driver_cam esp_driver_dac esp_driver_gpio esp_driver_gptimer esp_driver_i2c esp_driver_i2s esp_driver_isp esp_driver_jpeg esp_driver_ledc esp_driver_mcpwm esp_driver_parlio esp_driver_pcnt esp_driver_ppa esp_driver_rmt esp_driver_sdio esp_driver_sdm esp_driver_sdmmc esp_driver_sdspi esp_driver_spi esp_driver_touch_sens esp_driver_tsens esp_driver_twai esp_driver_uart esp_driver_usb_serial_jtag esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_mm esp_netif esp_netif_stack esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_security esp_system esp_timer esp_vfs_console esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash nvs_sec_provider openthread partition_table protobuf-c protocomm pthread riscv rt sdmmc soc spi_flash spiffs st7735 tcp_transport ulp unity usb v2x_driver vfs wear_levelling wifi_provisioning wpa_supplicant
-- Component paths: /home/claw/esp/esp-idf/components/app_trace /home/claw/esp/esp-idf/components/app_update /home/claw/esp/esp-idf/components/bootloader /home/claw/esp/esp-idf/components/bootloader_support /home/claw/esp/esp-idf/components/bt /home/claw/esp/esp-idf/components/cmock /home/claw/esp/esp-idf/components/console /home/claw/esp/esp-idf/components/cxx /home/claw/esp/esp-idf/components/driver /home/claw/esp/esp-idf/components/efuse /home/claw/esp/esp-idf/components/esp-tls /home/claw/esp/esp-idf/components/esp_adc /home/claw/esp/esp-idf/components/esp_app_format /home/claw/esp/esp-idf/components/esp_bootloader_format /home/claw/esp/esp-idf/components/esp_coex /home/claw/esp/esp-idf/components/esp_common /home/claw/esp/esp-idf/components/esp_driver_ana_cmpr /home/claw/esp/esp-idf/components/esp_driver_bitscrambler /home/claw/esp/esp-idf/components/esp_driver_cam /home/claw/esp/esp-idf/components/esp_driver_dac /home/claw/esp/esp-idf/components/esp_driver_gpio /home/claw/esp/esp-idf/components/esp_driver_gptimer /home/claw/esp/esp-idf/components/esp_driver_i2c /home/claw/esp/esp-idf/components/esp_driver_i2s /home/claw/esp/esp-idf/components/esp_driver_isp /home/claw/esp/esp-idf/components/esp_driver_jpeg /home/claw/esp/esp-idf/components/esp_driver_ledc /home/claw/esp/esp-idf/components/esp_driver_mcpwm /home/claw/esp/esp-idf/components/esp_driver_parlio /home/claw/esp/esp-idf/components/esp_driver_pcnt /home/claw/esp/esp-idf/components/esp_driver_ppa /home/claw/esp/esp-idf/components/esp_driver_rmt /home/claw/esp/esp-idf/components/esp_driver_sdio /home/claw/esp/esp-idf/components/esp_driver_sdm /home/claw/esp/esp-idf/components/esp_driver_sdmmc /home/claw/esp/esp-idf/components/esp_driver_sdspi /home/claw/esp/esp-idf/components/esp_driver_spi /home/claw/esp/esp-idf/components/esp_driver_touch_sens /home/claw/esp/esp-idf/components/esp_driver_tsens /home/claw/esp/esp-idf/components/esp_driver_twai /home/claw/esp/esp-idf/components/esp_driver_uart /home/claw/esp/esp-idf/components/esp_driver_usb_serial_jtag /home/claw/esp/esp-idf/components/esp_eth /home/claw/esp/esp-idf/components/esp_event /home/claw/esp/esp-idf/components/esp_gdbstub /home/claw/esp/esp-idf/components/esp_hid /home/claw/esp/esp-idf/components/esp_http_client /home/claw/esp/esp-idf/components/esp_http_server /home/claw/esp/esp-idf/components/esp_https_ota /home/claw/esp/esp-idf/components/esp_https_server /home/claw/esp/esp-idf/components/esp_hw_support /home/claw/esp/esp-idf/components/esp_lcd /home/claw/esp/esp-idf/components/esp_local_ctrl /home/claw/esp/esp-idf/components/esp_mm /home/claw/esp/esp-idf/components/esp_netif /home/claw/esp/esp-idf/components/esp_netif_stack /home/claw/esp/esp-idf/components/esp_partition /home/claw/esp/esp-idf/components/esp_phy /home/claw/esp/esp-idf/components/esp_pm /home/claw/esp/esp-idf/components/esp_psram /home/claw/esp/esp-idf/components/esp_ringbuf /home/claw/esp/esp-idf/components/esp_rom /home/claw/esp/esp-idf/components/esp_security /home/claw/esp/esp-idf/components/esp_system /home/claw/esp/esp-idf/components/esp_timer /home/claw/esp/esp-idf/components/esp_vfs_console /home/claw/esp/esp-idf/components/esp_wifi /home/claw/esp/esp-idf/components/espcoredump /home/claw/esp/esp-idf/components/esptool_py /home/claw/esp/esp-idf/components/fatfs /home/claw/esp/esp-idf/components/freertos /home/claw/esp/esp-idf/components/hal /home/claw/esp/esp-idf/components/heap /home/claw/esp/esp-idf/components/http_parser /home/claw/esp/esp-idf/components/idf_test /home/claw/esp/esp-idf/components/ieee802154 /home/claw/esp/esp-idf/components/json /home/claw/esp/esp-idf/components/log /home/claw/esp/esp-idf/components/lwip /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/main /home/claw/esp/esp-idf/components/mbedtls /home/claw/esp/esp-idf/components/mqtt /home/claw/esp/esp-idf/components/newlib /home/claw/esp/esp-idf/components/nvs_flash /home/claw/esp/esp-idf/components/nvs_sec_provider /home/claw/esp/esp-idf/components/openthread /home/claw/esp/esp-idf/components/partition_table /home/claw/esp/esp-idf/components/protobuf-c /home/claw/esp/esp-idf/components/protocomm /home/claw/esp/esp-idf/components/pthread /home/claw/esp/esp-idf/components/riscv /home/claw/esp/esp-idf/components/rt /home/claw/esp/esp-idf/components/sdmmc /home/claw/esp/esp-idf/components/soc /home/claw/esp/esp-idf/components/spi_flash /home/claw/esp/esp-idf/components/spiffs /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/components/st7735 /home/claw/esp/esp-idf/components/tcp_transport /home/claw/esp/esp-idf/components/ulp /home/claw/esp/esp-idf/components/unity /home/claw/esp/esp-idf/components/usb /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/components/v2x_driver /home/claw/esp/esp-idf/components/vfs /home/claw/esp/esp-idf/components/wear_levelling /home/claw/esp/esp-idf/components/wifi_provisioning /home/claw/esp/esp-idf/components/wpa_supplicant
-- Configuring done (4.7s)
-- Generating done (0.9s)
-- Build files have been written to: /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/build
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,4 @@
Command: ninja clean
[1/2] Cleaning additional files...
[2/2] Cleaning all built files...
Cleaning... 1066 files.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,7 @@
Command: ninja all
[0/1] Re-running CMake...
-- Minimal build - OFF
-- Building ESP-IDF components for target esp32c5
-- Configuring incomplete, errors occurred!
FAILED: build.ninja
/usr/bin/cmake --regenerate-during-build -S/home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw -B/home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/build
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,18 @@
Command: ninja all
[1/9] Performing build step for 'bootloader'
[1/1] cd /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/build/bootloader/esp-idf/esptool_py && /home/claw/.espressif/python_env/idf5.5_py3.13_env/bin/python /home/claw/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x2000 /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/build/bootloader/bootloader.bin
Bootloader binary size 0x56a0 bytes. 0x960 bytes (10%) free.
[2/9] No install step for 'bootloader'
[3/9] Completed 'bootloader'
[4/9] Building C object esp-idf/v2x_driver/CMakeFiles/__idf_v2x_driver.dir/v2x_driver.c.obj
[5/9] Linking C static library esp-idf/v2x_driver/libv2x_driver.a
[6/9] Generating esp-idf/esp_system/ld/sections.ld
[7/9] Linking CXX executable v2x_sniffer.elf
[8/9] Generating binary image from built executable
esptool.py v4.12.dev1
Creating esp32c5 image...
Merged 1 ELF section
Successfully created esp32c5 image.
Generated /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/build/v2x_sniffer.bin
[9/9] cd /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/build/esp-idf/esptool_py && /home/claw/.espressif/python_env/idf5.5_py3.13_env/bin/python /home/claw/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 partition --type app /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/build/partition_table/partition-table.bin /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/build/v2x_sniffer.bin
v2x_sniffer.bin binary size 0xed570 bytes. Smallest app partition is 0x100000 bytes. 0x12a90 bytes (7%) free.
@@ -0,0 +1,8 @@
Command: ninja all
[1/4] cd /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/build/esp-idf/esptool_py && /home/claw/.espressif/python_env/idf5.5_py3.13_env/bin/python /home/claw/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 partition --type app /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/build/partition_table/partition-table.bin /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/build/v2x_sniffer.bin
v2x_sniffer.bin binary size 0xed570 bytes. Smallest app partition is 0x100000 bytes. 0x12a90 bytes (7%) free.
[2/4] Performing build step for 'bootloader'
[1/1] cd /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/build/bootloader/esp-idf/esptool_py && /home/claw/.espressif/python_env/idf5.5_py3.13_env/bin/python /home/claw/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x2000 /home/claw/.openclaw/workspace/v2x-sniffer/v2x_fw/build/bootloader/bootloader.bin
Bootloader binary size 0x56a0 bytes. 0x960 bytes (10%) free.
[3/4] No install step for 'bootloader'
[4/4] Completed 'bootloader'