197 lines
36 KiB
Plaintext
197 lines
36 KiB
Plaintext
|
[0/1] Re-running CMake...
|
|||
|
-- ccache will be used for faster recompilation
|
|||
|
-- Building ESP-IDF components for target esp32s3
|
|||
|
-- Project sdkconfig file E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/sdkconfig
|
|||
|
-- App "wheel" version: d63bc6e-dirty
|
|||
|
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/esp-idf/esp_system/ld/memory.ld
|
|||
|
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/ld/esp32s3/sections.ld.in
|
|||
|
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
|
|||
|
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
|
|||
|
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
|
|||
|
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
|
|||
|
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
|
|||
|
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/esp32s3/ld/esp32s3.peripherals.ld
|
|||
|
-- Components: app_trace app_update bdc_motor bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_common 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_netif esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mcpwm_bdc_control modbus_tcp mqtt newlib nvs_flash openthread partition_table perfmon pid_ctrl protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport touch_element ulp unity usb vfs wear_levelling wifi_provisioning wifi_station wpa_supplicant xtensa
|
|||
|
-- Component paths: E:/Espressif/frameworks/esp-idf-v5.0.4/components/app_trace E:/Espressif/frameworks/esp-idf-v5.0.4/components/app_update E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor E:/Espressif/frameworks/esp-idf-v5.0.4/components/bootloader E:/Espressif/frameworks/esp-idf-v5.0.4/components/bootloader_support E:/Espressif/frameworks/esp-idf-v5.0.4/components/bt E:/Espressif/frameworks/esp-idf-v5.0.4/components/cmock E:/Espressif/frameworks/esp-idf-v5.0.4/components/console E:/Espressif/frameworks/esp-idf-v5.0.4/components/cxx E:/Espressif/frameworks/esp-idf-v5.0.4/components/driver E:/Espressif/frameworks/esp-idf-v5.0.4/components/efuse E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp-tls E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_adc E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_app_format E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_common E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_eth E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_event E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_gdbstub E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hid E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_http_client E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_http_server E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_https_ota E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_https_server E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_lcd E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_local_ctrl E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_netif E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_partition E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_phy E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_pm E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_psram E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_ringbuf E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_timer E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_wifi E:/Espressif/frameworks/esp-idf-v5.0.4/components/espcoredump E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py E:/Espressif/frameworks/esp-idf-v5.0.4/components/fatfs E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos E:/Espressif/frameworks/esp-idf-v5.0.4/components/hal E:/Espressif/frameworks/esp-idf-v5.0.4/components/heap E:/Espressif/frameworks/esp-idf-v5.0.4/components/http_parser E:/Espressif/frameworks/esp-idf-v5.0.4/components/idf_test E:/Espressif/frameworks/esp-idf-v5.0.4/components/ieee802154 E:/Espressif/frameworks/esp-idf-v5.0.4/components/json E:/Espressif/frameworks/esp-idf-v5.0.4/components/log E:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/main E:/Espressif/frameworks/esp-idf-v5.0.4/components/mbedtls E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/modbus_tcp E:/Espressif/frameworks/esp-idf-v5.0.4/components/mqtt E:/Espressif/frameworks/esp-idf-v5.0.4/components/newlib E:/Espressif/frameworks/esp-idf-v5.0.4/components/nvs_flash E:/Espressif/frameworks/esp-idf-v5.0.4/components/openthread E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table E:/Espressif/frameworks/esp-idf-v5.0.4/components/perfmon E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/pid_ctrl E:/Espressif/frameworks/esp-idf-v5.0.4/components/protobuf-c E:/Espressif/frameworks/esp-idf-v5.0.4/components/protocomm E:/Espressif/frameworks/esp-idf-v5.0.4/components/pthread E:/Espressif/frameworks/esp-idf-v5.0.4/components/sdmmc E:/Espressif/frameworks/esp-idf-v5.0.4/components/soc E:/Espressif/frameworks/esp-idf-v5.0.4/components/spi_flash E:/Espressif/frameworks/esp-idf-v5.0.4/components/spiffs E:/Espressif/frameworks/esp-idf-v5.0.4/components/tcp_transport E:/Espressif/frameworks/esp-idf-v5.0.4/c
|
|||
|
-- Configuring done
|
|||
|
-- Generating done
|
|||
|
-- Build files have been written to: E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build
|
|||
|
[1/14] Performing build step for 'bootloader'
|
|||
|
[1/1] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\build\bootloader\esp-idf\esptool_py && E:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe E:/Espressif/frameworks/esp-idf-v5.0.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/bootloader/bootloader.bin"
|
|||
|
Bootloader binary size 0x4f90 bytes. 0x3070 bytes (38%) free.
|
|||
|
[2/12] Building C object esp-idf/bdc_motor/CMakeFiles/__idf_bdc_motor.dir/bdc_motor_mcpwm_impl.c.obj
|
|||
|
FAILED: esp-idf/bdc_motor/CMakeFiles/__idf_bdc_motor.dir/bdc_motor_mcpwm_impl.c.obj
|
|||
|
ccache E:\Espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin\xtensa-esp32s3-elf-gcc.exe -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/config -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/newlib/platform_include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/esp_additions/include/freertos -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/esp_additions/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/soc -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/soc/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/port/esp32s3/. -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/port/esp32s3/private_include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/heap/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/log/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/esp32s3/. -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/platform_port/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/include/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_common/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/soc -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/include/private -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include/apps -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include/apps/sntp -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/lwip/src/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/port/esp32/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/port/esp32/include/arch -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/driver/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/driver/deprecated -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/driver/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_pm/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_ringbuf/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/pid_ctrl -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_timer/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/modbus_tcp -mlongcalls -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel=. -fmacro-prefix-map=E:/Espressif/frameworks/esp-idf-v5.0.4=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v5.0.4-dirty\" -DESP_PLATFORM -D_POSIX_READER_WR
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:15:5: error: unknown type name 'bdc_motor_t'
|
|||
|
15 | bdc_motor_t base;
|
|||
|
| ^~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:16:5: error: unknown type name 'mcpwm_timer_handle_t'
|
|||
|
16 | mcpwm_timer_handle_t timer;
|
|||
|
| ^~~~~~~~~~~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:17:5: error: unknown type name 'mcpwm_oper_handle_t'
|
|||
|
17 | mcpwm_oper_handle_t operator;
|
|||
|
| ^~~~~~~~~~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:18:5: error: unknown type name 'mcpwm_cmpr_handle_t'
|
|||
|
18 | mcpwm_cmpr_handle_t cmpa;
|
|||
|
| ^~~~~~~~~~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:19:5: error: unknown type name 'mcpwm_cmpr_handle_t'
|
|||
|
19 | mcpwm_cmpr_handle_t cmpb;
|
|||
|
| ^~~~~~~~~~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:20:5: error: unknown type name 'mcpwm_gen_handle_t'
|
|||
|
20 | mcpwm_gen_handle_t gena;
|
|||
|
| ^~~~~~~~~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:21:5: error: unknown type name 'mcpwm_gen_handle_t'
|
|||
|
21 | mcpwm_gen_handle_t genb;
|
|||
|
| ^~~~~~~~~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:24:44: error: unknown type name 'bdc_motor_t'
|
|||
|
24 | static esp_err_t bdc_motor_mcpwm_set_speed(bdc_motor_t *motor, uint32_t speed)
|
|||
|
| ^~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:32:41: error: unknown type name 'bdc_motor_t'
|
|||
|
32 | static esp_err_t bdc_motor_mcpwm_enable(bdc_motor_t *motor)
|
|||
|
| ^~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:42:42: error: unknown type name 'bdc_motor_t'
|
|||
|
42 | static esp_err_t bdc_motor_mcpwm_disable(bdc_motor_t *motor)
|
|||
|
| ^~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:50:42: error: unknown type name 'bdc_motor_t'
|
|||
|
50 | static esp_err_t bdc_motor_mcpwm_forward(bdc_motor_t *motor)
|
|||
|
| ^~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:58:42: error: unknown type name 'bdc_motor_t'
|
|||
|
58 | static esp_err_t bdc_motor_mcpwm_reverse(bdc_motor_t *motor)
|
|||
|
| ^~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:66:40: error: unknown type name 'bdc_motor_t'
|
|||
|
66 | static esp_err_t bdc_motor_mcpwm_coast(bdc_motor_t *motor)
|
|||
|
| ^~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:74:40: error: unknown type name 'bdc_motor_t'
|
|||
|
74 | static esp_err_t bdc_motor_mcpwm_brake(bdc_motor_t *motor)
|
|||
|
| ^~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:82:38: error: unknown type name 'bdc_motor_t'
|
|||
|
82 | static esp_err_t bdc_motor_mcpwm_del(bdc_motor_t *motor)
|
|||
|
| ^~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:95:44: error: unknown type name 'bdc_motor_config_t'
|
|||
|
95 | esp_err_t bdc_motor_new_mcpwm_device(const bdc_motor_config_t *motor_config, const bdc_motor_mcpwm_config_t *mcpwm_config, bdc_motor_handle_t *ret_motor)
|
|||
|
| ^~~~~~~~~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:95:84: error: unknown type name 'bdc_motor_mcpwm_config_t'
|
|||
|
95 | esp_err_t bdc_motor_new_mcpwm_device(const bdc_motor_config_t *motor_config, const bdc_motor_mcpwm_config_t *mcpwm_config, bdc_motor_handle_t *ret_motor)
|
|||
|
| ^~~~~~~~~~~~~~~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:95:124: error: unknown type name 'bdc_motor_handle_t'
|
|||
|
95 | esp_err_t bdc_motor_new_mcpwm_device(const bdc_motor_config_t *motor_config, const bdc_motor_mcpwm_config_t *mcpwm_config, bdc_motor_handle_t *ret_motor)
|
|||
|
| ^~~~~~~~~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor_mcpwm_impl.c:12:20: warning: 'TAG' defined but not used [-Wunused-variable]
|
|||
|
12 | static const char *TAG = "bdc_motor_mcpwm";
|
|||
|
| ^~~
|
|||
|
[3/12] Building C object esp-idf/bdc_motor/CMakeFiles/__idf_bdc_motor.dir/bdc_motor.c.obj
|
|||
|
FAILED: esp-idf/bdc_motor/CMakeFiles/__idf_bdc_motor.dir/bdc_motor.c.obj
|
|||
|
ccache E:\Espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin\xtensa-esp32s3-elf-gcc.exe -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/config -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/newlib/platform_include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/esp_additions/include/freertos -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/esp_additions/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/soc -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/soc/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/port/esp32s3/. -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/port/esp32s3/private_include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/heap/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/log/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/esp32s3/. -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/platform_port/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/include/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_common/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/soc -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/include/private -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include/apps -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include/apps/sntp -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/lwip/src/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/port/esp32/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/port/esp32/include/arch -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/driver/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/driver/deprecated -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/driver/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_pm/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_ringbuf/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/pid_ctrl -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_timer/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/modbus_tcp -mlongcalls -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel=. -fmacro-prefix-map=E:/Espressif/frameworks/esp-idf-v5.0.4=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v5.0.4-dirty\" -DESP_PLATFORM -D_POSIX_READER_WR
|
|||
|
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.h:10,
|
|||
|
from E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:11:
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.h:14:5: error: unknown type name 'bdc_motor_handle_t'
|
|||
|
14 | bdc_motor_handle_t motor; /* 速度大小控制,mcpwm */
|
|||
|
| ^~~~~~~~~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c: In function 'bdc_motor_enable':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:19:12: error: 'motor' undeclared (first use in this function)
|
|||
|
19 | return motor->enable(motor_ctrl_ctx.motor);
|
|||
|
| ^~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:19:12: note: each undeclared identifier is reported only once for each function it appears in
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c: In function 'bdc_motor_disable':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:25:12: error: 'motor' undeclared (first use in this function)
|
|||
|
25 | return motor->disable(motor_ctrl_ctx.motor);
|
|||
|
| ^~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c: In function 'bdc_motor_set_speed':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:31:12: error: 'motor' undeclared (first use in this function)
|
|||
|
31 | return motor->set_speed(motor_ctrl_ctx.motor, speed);
|
|||
|
| ^~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c: In function 'bdc_motor_forward':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:39:12: error: 'motor' undeclared (first use in this function)
|
|||
|
39 | return motor->forward(motor_ctrl_ctx.motor);
|
|||
|
| ^~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c: In function 'bdc_motor_reverse':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:47:12: error: 'motor' undeclared (first use in this function)
|
|||
|
47 | return motor->reverse(motor_ctrl_ctx.motor);
|
|||
|
| ^~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c: In function 'bdc_motor_coast':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:56:12: error: 'motor' undeclared (first use in this function)
|
|||
|
56 | return motor->coast(motor_ctrl_ctx.motor);
|
|||
|
| ^~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c: In function 'bdc_motor_brake':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:65:12: error: 'motor' undeclared (first use in this function)
|
|||
|
65 | return motor->brake(motor_ctrl_ctx.motor);
|
|||
|
| ^~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c: In function 'bdc_motor_del':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:71:12: error: 'motor' undeclared (first use in this function)
|
|||
|
71 | return motor->del(motor_ctrl_ctx.motor);
|
|||
|
| ^~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c: In function 'bdc_motor_enable':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:20:1: error: control reaches end of non-void function [-Werror=return-type]
|
|||
|
20 | }
|
|||
|
| ^
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c: In function 'bdc_motor_disable':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:26:1: error: control reaches end of non-void function [-Werror=return-type]
|
|||
|
26 | }
|
|||
|
| ^
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c: In function 'bdc_motor_set_speed':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:32:1: error: control reaches end of non-void function [-Werror=return-type]
|
|||
|
32 | }
|
|||
|
| ^
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c: In function 'bdc_motor_forward':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:40:1: error: control reaches end of non-void function [-Werror=return-type]
|
|||
|
40 | }
|
|||
|
| ^
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c: In function 'bdc_motor_reverse':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:48:1: error: control reaches end of non-void function [-Werror=return-type]
|
|||
|
48 | }
|
|||
|
| ^
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c: In function 'bdc_motor_coast':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:57:1: error: control reaches end of non-void function [-Werror=return-type]
|
|||
|
57 | }
|
|||
|
| ^
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c: In function 'bdc_motor_brake':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:66:1: error: control reaches end of non-void function [-Werror=return-type]
|
|||
|
66 | }
|
|||
|
| ^
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c: In function 'bdc_motor_del':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.c:72:1: error: control reaches end of non-void function [-Werror=return-type]
|
|||
|
72 | }
|
|||
|
| ^
|
|||
|
cc1.exe: some warnings being treated as errors
|
|||
|
[4/12] Building C object esp-idf/mcpwm_bdc_control/CMakeFiles/__idf_mcpwm_bdc_control.dir/mcpwm_bdc_control.c.obj
|
|||
|
FAILED: esp-idf/mcpwm_bdc_control/CMakeFiles/__idf_mcpwm_bdc_control.dir/mcpwm_bdc_control.c.obj
|
|||
|
ccache E:\Espressif\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin\xtensa-esp32s3-elf-gcc.exe -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/config -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/newlib/platform_include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/esp_additions/include/freertos -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/esp_additions/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/soc -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/soc/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/port/esp32s3/. -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/port/esp32s3/private_include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/heap/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/log/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/esp32s3/. -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/soc/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/hal/platform_port/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/include/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_rom/esp32s3 -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_common/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/soc -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_system/port/include/private -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include/apps -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/include/apps/sntp -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/lwip/src/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/port/esp32/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/lwip/port/esp32/include/arch -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/driver/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/driver/deprecated -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/driver/esp32s3/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_pm/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_ringbuf/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/pid_ctrl -IE:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_timer/include -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/modbus_tcp -mlongcalls -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel=. -fmacro-prefix-map=E:/Espressif/frameworks/esp-idf-v5.0.4=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v5.0.4-dirty\" -DESP_PLATFORM -D_POSIX_READER_WR
|
|||
|
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/bdc_motor/bdc_motor.h:10,
|
|||
|
from E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c:16:
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.h:14:5: error: unknown type name 'bdc_motor_handle_t'
|
|||
|
14 | bdc_motor_handle_t motor; /* 速度大小控制,mcpwm */
|
|||
|
| ^~~~~~~~~~~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c: In function 'pid_loop_cb':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c:95:32: warning: initialization of 'bdc_motor_handle_t' {aka 'struct bdc_motor_t *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
|
|||
|
95 | bdc_motor_handle_t motor = ctx->motor;
|
|||
|
| ^~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c:95:24: warning: unused variable 'motor' [-Wunused-variable]
|
|||
|
95 | bdc_motor_handle_t motor = ctx->motor;
|
|||
|
| ^~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c: In function 'bdc_motor_init_all':
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c:280:18: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
|
|||
|
280 | .motor = NULL,
|
|||
|
| ^~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c:280:18: note: (near initialization for 'motor_ctrl_ctxl.motor')
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c:285:69: warning: passing argument 4 of 'bdc_motor_speed_pwm_init' from incompatible pointer type [-Wincompatible-pointer-types]
|
|||
|
285 | bdc_motor_speed_pwm_init(BDC_CH1_HI0_GPIO, BDC_CH1_HI1_GPIO, 0, &(motor_ctrl_ctxl.motor));
|
|||
|
| ^~~~~~~~~~~~~~~~~~~~~~~~
|
|||
|
| |
|
|||
|
| int *
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c:153:111: note: expected 'struct bdc_motor_t **' but argument is of type 'int *'
|
|||
|
153 | void bdc_motor_speed_pwm_init(uint32_t bdc_hi0_gpio, uint32_t bdc_hi1_gpio, int group_id, bdc_motor_handle_t *motor_ret)
|
|||
|
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c:296:18: warning: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
|
|||
|
296 | .motor = NULL,
|
|||
|
| ^~~~
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c:296:18: note: (near initialization for 'motor_ctrl_ctxr.motor')
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c:301:69: warning: passing argument 4 of 'bdc_motor_speed_pwm_init' from incompatible pointer type [-Wincompatible-pointer-types]
|
|||
|
301 | bdc_motor_speed_pwm_init(BDC_CH0_HI0_GPIO, BDC_CH0_HI1_GPIO, 1, &(motor_ctrl_ctxr.motor));
|
|||
|
| ^~~~~~~~~~~~~~~~~~~~~~~~
|
|||
|
| |
|
|||
|
| int *
|
|||
|
E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/components/mcpwm_bdc_control/mcpwm_bdc_control.c:153:111: note: expected 'struct bdc_motor_t **' but argument is of type 'int *'
|
|||
|
153 | void bdc_motor_speed_pwm_init(uint32_t bdc_hi0_gpio, uint32_t bdc_hi1_gpio, int group_id, bdc_motor_handle_t *motor_ret)
|
|||
|
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
|
|||
|
ninja: build stopped: subcommand failed.
|