esp32_shock/build/log/idf_py_stdout_output_12332
2024-04-27 09:15:55 +08:00

346 lines
41 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[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/esp32_shock/sdkconfig
-- App "esp32_shock" version: 1b9febf-dirty
-- Adding linker script E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/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: adc_measure 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 lis3dsh log lwip main mbedtls mcpwm_bdc_control modbus_tcp mqtt newlib nvs_flash openthread partition_table perfmon pid_ctrl protobuf-c protocomm pthread sdmmc servo soc spi_flash spiffs tcp_transport touch_element twai_communication ulp unity usb vfs wear_levelling wifi_provisioning wifi_station wpa_supplicant xtensa
-- Component paths: E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/adc_measure 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/esp32_shock/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/app/esp32_shock/components/lis3dsh 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/esp32_shock/main E:/Espressif/frameworks/esp-idf-v5.0.4/components/mbedtls E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/mcpwm_bdc_control E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/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/esp32_shock/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/app/esp32_shock/components/servo 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/components/touch_element E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/twai_communication E:/Espressif/frameworks/esp-idf-v5.0.4/components/ulp E:/Espressif/frameworks/esp-idf-v5.0.4/components/unity E:/Espressif/frameworks/esp-idf-v5.0.4/components/usb E:/Espressif/frameworks/esp-idf-v5.0.4/components/vfs E:/Espressif/frameworks/esp-idf-v5.0.4/components/wear_levelling E:/Espressif/frameworks/esp-idf-v5.0.4/components/wifi_provisioning E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/wifi_station E:/Espressif/frameworks/esp-idf-v5.0.4/components/wpa_supplicant E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/build
[1/16] Building C object esp-idf/lis3dsh/CMakeFiles/__idf_lis3dsh.dir/fft_lib/dsps_fft2r_bitrev_tables_fc32.c.obj
[2/16] Building C object esp-idf/lis3dsh/CMakeFiles/__idf_lis3dsh.dir/fft_lib/dsps_wind_hann_f32.c.obj
[3/16] Building C object esp-idf/lis3dsh/CMakeFiles/__idf_lis3dsh.dir/fft_lib/dsps_pwroftwo.c.obj
[4/16] Building C object esp-idf/lis3dsh/CMakeFiles/__idf_lis3dsh.dir/lis3dsh_lib/lis3dsh_reg.c.obj
[5/16] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\esp32_shock\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/esp32_shock/build/bootloader/bootloader.bin"
Bootloader binary size 0x5080 bytes. 0x2f80 bytes (37%) free.
[6/14] Building C object esp-idf/lis3dsh/CMakeFiles/__idf_lis3dsh.dir/fft_lib/dsps_fft2r_fc32_ansi.c.obj
[7/14] Building C object esp-idf/lis3dsh/CMakeFiles/__idf_lis3dsh.dir/shake_detect.c.obj
FAILED: esp-idf/lis3dsh/CMakeFiles/__idf_lis3dsh.dir/shake_detect.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/esp32_shock/build/config -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/fft_lib/inc -IE:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/lis3dsh_lib -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 -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/esp32_shock=. -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_WRITER_LOCKS -MD -MT esp-idf/lis3dsh/CMakeFiles/__idf_lis3dsh.dir/shake_detect.c.obj -MF esp-idf\lis3dsh\CMakeFiles\__idf_lis3dsh.dir\shake_detect.c.obj.d -o esp-idf/lis3dsh/CMakeFiles/__idf_lis3dsh.dir/shake_detect.c.obj -c E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:16,
from E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/spinlock.h:11,
from E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:74,
from E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include/freertos/portable.h:58,
from E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include/freertos/FreeRTOS.h:70,
from E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:4:
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:27:1: warning: data definition has no type or storage class
27 | FORCE_INLINE_ATTR __attribute__((pure)) uint32_t xt_utils_get_core_id(void)
| ^~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:27:1: error: type defaults to 'int' in declaration of 'FORCE_INLINE_ATTR' [-Werror=implicit-int]
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:27:1: warning: 'pure' attribute ignored [-Wattributes]
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:27:41: error: expected ',' or ';' before 'uint32_t'
27 | FORCE_INLINE_ATTR __attribute__((pure)) uint32_t xt_utils_get_core_id(void)
| ^~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:46:1: warning: data definition has no type or storage class
46 | FORCE_INLINE_ATTR __attribute__((pure)) uint32_t xt_utils_get_raw_core_id(void)
| ^~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:46:1: error: type defaults to 'int' in declaration of 'FORCE_INLINE_ATTR' [-Werror=implicit-int]
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:46:1: warning: 'pure' attribute ignored [-Wattributes]
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:46:41: error: expected ',' or ';' before 'uint32_t'
46 | FORCE_INLINE_ATTR __attribute__((pure)) uint32_t xt_utils_get_raw_core_id(void)
| ^~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:60:18: error: expected ';' before 'void'
60 | FORCE_INLINE_ATTR void *xt_utils_get_sp(void)
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:67:1: error: unknown type name 'FORCE_INLINE_ATTR'
67 | FORCE_INLINE_ATTR uint32_t xt_utils_get_cycle_count(void)
| ^~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:67:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xt_utils_get_cycle_count'
67 | FORCE_INLINE_ATTR uint32_t xt_utils_get_cycle_count(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:79:18: error: expected ';' before 'void'
79 | FORCE_INLINE_ATTR void xt_utils_wait_for_intr(void)
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:92:18: error: expected ';' before 'void'
92 | FORCE_INLINE_ATTR void xt_utils_set_vecbase(uint32_t vecbase)
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:99:1: error: unknown type name 'FORCE_INLINE_ATTR'
99 | FORCE_INLINE_ATTR uint32_t xt_utils_intr_get_enabled_mask(void)
| ^~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:99:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xt_utils_intr_get_enabled_mask'
99 | FORCE_INLINE_ATTR uint32_t xt_utils_intr_get_enabled_mask(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:116:18: error: expected ';' before 'void'
116 | FORCE_INLINE_ATTR void xt_utils_set_breakpoint(int bp_num, uint32_t bp_addr)
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:131:18: error: expected ';' before 'void'
131 | FORCE_INLINE_ATTR void xt_utils_clear_breakpoint(int bp_num)
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:147:18: error: expected ';' before 'void'
147 | FORCE_INLINE_ATTR void xt_utils_set_watchpoint(int wp_num,
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:173:18: error: expected ';' before 'void'
173 | FORCE_INLINE_ATTR void xt_utils_clear_watchpoint(int wp_num)
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:187:18: error: expected ';' before '_Bool'
187 | FORCE_INLINE_ATTR bool xt_utils_dbgr_is_attached(void)
| ^
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:195:18: error: expected ';' before 'void'
195 | FORCE_INLINE_ATTR void xt_utils_dbgr_break(void)
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/xtensa/include/xt_utils.h:204:18: error: expected ';' before '_Bool'
204 | FORCE_INLINE_ATTR bool xt_utils_compare_and_set(volatile uint32_t *addr, uint32_t compare_value, uint32_t new_value)
| ^
| ;
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/spinlock.h:11,
from E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:74,
from E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include/freertos/portable.h:58,
from E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include/freertos/FreeRTOS.h:70,
from E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:4:
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:123:1: warning: data definition has no type or storage class
123 | FORCE_INLINE_ATTR __attribute__((pure)) int esp_cpu_get_core_id(void)
| ^~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:123:1: error: type defaults to 'int' in declaration of 'FORCE_INLINE_ATTR' [-Werror=implicit-int]
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:123:1: warning: 'pure' attribute ignored [-Wattributes]
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:123:41: error: expected ',' or ';' before 'int'
123 | FORCE_INLINE_ATTR __attribute__((pure)) int esp_cpu_get_core_id(void)
| ^~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:138:18: error: expected ';' before 'void'
138 | FORCE_INLINE_ATTR void *esp_cpu_get_sp(void)
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:155:1: error: unknown type name 'FORCE_INLINE_ATTR'
155 | FORCE_INLINE_ATTR esp_cpu_cycle_count_t esp_cpu_get_cycle_count(void)
| ^~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:155:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'esp_cpu_get_cycle_count'
155 | FORCE_INLINE_ATTR esp_cpu_cycle_count_t esp_cpu_get_cycle_count(void)
| ^~~~~~~~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:172:18: error: expected ';' before 'void'
172 | FORCE_INLINE_ATTR void esp_cpu_set_cycle_count(esp_cpu_cycle_count_t cycle_count)
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:191:1: warning: data definition has no type or storage class
191 | FORCE_INLINE_ATTR __attribute__((pure)) void *esp_cpu_pc_to_addr(uint32_t pc)
| ^~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:191:1: error: type defaults to 'int' in declaration of 'FORCE_INLINE_ATTR' [-Werror=implicit-int]
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:191:1: warning: 'pure' attribute ignored [-Wattributes]
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:191:41: error: expected ',' or ';' before 'void'
191 | FORCE_INLINE_ATTR __attribute__((pure)) void *esp_cpu_pc_to_addr(uint32_t pc)
| ^~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:227:18: error: expected ';' before 'void'
227 | FORCE_INLINE_ATTR void esp_cpu_intr_set_ivt_addr(const void *ivt_addr)
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:310:18: error: expected ';' before '_Bool'
310 | FORCE_INLINE_ATTR bool esp_cpu_intr_has_handler(int intr_num)
| ^
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h: In function 'esp_cpu_intr_has_handler':
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:315:48: error: implicit declaration of function 'esp_cpu_get_core_id'; did you mean 'esp_cpu_get_sp'? [-Werror=implicit-function-declaration]
315 | has_handler = xt_int_has_handler(intr_num, esp_cpu_get_core_id());
| ^~~~~~~~~~~~~~~~~~~
| esp_cpu_get_sp
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h: At top level:
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:334:18: error: expected ';' before 'void'
334 | FORCE_INLINE_ATTR void esp_cpu_intr_set_handler(int intr_num, esp_cpu_intr_handler_t handler, void *handler_arg)
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:352:18: error: expected ';' before 'void'
352 | FORCE_INLINE_ATTR void *esp_cpu_intr_get_handler_arg(int intr_num)
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:371:18: error: expected ';' before 'void'
371 | FORCE_INLINE_ATTR void esp_cpu_intr_enable(uint32_t intr_mask)
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:385:18: error: expected ';' before 'void'
385 | FORCE_INLINE_ATTR void esp_cpu_intr_disable(uint32_t intr_mask)
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:399:1: error: unknown type name 'FORCE_INLINE_ATTR'
399 | FORCE_INLINE_ATTR uint32_t esp_cpu_intr_get_enabled_mask(void)
| ^~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:399:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'esp_cpu_intr_get_enabled_mask'
399 | FORCE_INLINE_ATTR uint32_t esp_cpu_intr_get_enabled_mask(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:413:18: error: expected ';' before 'void'
413 | FORCE_INLINE_ATTR void esp_cpu_intr_edge_ack(int intr_num)
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:495:18: error: expected ';' before '_Bool'
495 | FORCE_INLINE_ATTR bool esp_cpu_dbgr_is_attached(void)
| ^
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:507:18: error: expected ';' before 'void'
507 | FORCE_INLINE_ATTR void esp_cpu_dbgr_break(void)
| ^~~~~
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:525:1: error: unknown type name 'FORCE_INLINE_ATTR'
525 | FORCE_INLINE_ATTR intptr_t esp_cpu_get_call_addr(intptr_t return_address)
| ^~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/esp_cpu.h:525:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'esp_cpu_get_call_addr'
525 | FORCE_INLINE_ATTR intptr_t esp_cpu_get_call_addr(intptr_t return_address)
| ^~~~~~~~~~~~~~~~~~~~~
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:74,
from E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include/freertos/portable.h:58,
from E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include/freertos/FreeRTOS.h:70,
from E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:4:
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/spinlock.h: In function 'spinlock_acquire':
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/spinlock.h:78:15: error: implicit declaration of function 'xt_utils_get_raw_core_id' [-Werror=implicit-function-declaration]
78 | core_id = xt_utils_get_raw_core_id();
| ^~~~~~~~~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/esp_hw_support/include/spinlock.h:110:19: error: implicit declaration of function 'esp_cpu_get_cycle_count'; did you mean 'esp_cpu_set_cycle_count'? [-Werror=implicit-function-declaration]
110 | start_count = esp_cpu_get_cycle_count();
| ^~~~~~~~~~~~~~~~~~~~~~~
| esp_cpu_set_cycle_count
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include/freertos/portable.h:58,
from E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include/freertos/FreeRTOS.h:70,
from E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:4:
E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h: At top level:
E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:367:18: error: expected ';' before '_Bool'
367 | FORCE_INLINE_ATTR bool xPortCanYield(void);
| ^
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:406:1: error: unknown type name 'FORCE_INLINE_ATTR'
406 | FORCE_INLINE_ATTR BaseType_t xPortGetCoreID(void);
| ^~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:406:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xPortGetCoreID'
406 | FORCE_INLINE_ATTR BaseType_t xPortGetCoreID(void);
| ^~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:608:18: error: expected ';' before '_Bool'
608 | FORCE_INLINE_ATTR bool xPortCanYield(void)
| ^
| ;
E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:627:1: error: unknown type name 'FORCE_INLINE_ATTR'
627 | FORCE_INLINE_ATTR BaseType_t xPortGetCoreID(void)
| ^~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:627:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xPortGetCoreID'
627 | FORCE_INLINE_ATTR BaseType_t xPortGetCoreID(void)
| ^~~~~~~~~~~~~~
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:5:
E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include/freertos/task.h:443:19: error: unknown type name 'IRAM_ATTR'
443 | static inline IRAM_ATTR BaseType_t xTaskCreate(
| ^~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include/freertos/task.h:443:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xTaskCreate'
443 | static inline IRAM_ATTR BaseType_t xTaskCreate(
| ^~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include/freertos/task.h:612:19: error: unknown type name 'IRAM_ATTR'
612 | static inline IRAM_ATTR TaskHandle_t xTaskCreateStatic(
| ^~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include/freertos/task.h:612:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'xTaskCreateStatic'
612 | static inline IRAM_ATTR TaskHandle_t xTaskCreateStatic(
| ^~~~~~~~~~~~~~~~~
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:12:
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/lis3dsh_lib/lis3dsh_reg.h:594:3: error: conflicting types for 'lis3dsh_data_t'; have 'struct <anonymous>'
594 | } lis3dsh_data_t;
| ^~~~~~~~~~~~~~
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:11:
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.h:24:3: note: previous declaration of 'lis3dsh_data_t' with type 'lis3dsh_data_t'
24 | } lis3dsh_data_t;
| ^~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:50:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gpio_isr_handler'
50 | static void IRAM_ATTR gpio_isr_handler(void* arg)
| ^~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c: In function 'lis3dsh_drdy_int_init':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:68:30: error: 'ESP_INTR_FLAG_DEFAULT' undeclared (first use in this function); did you mean 'ESP_INTR_FLAG_LEVEL3'?
68 | gpio_install_isr_service(ESP_INTR_FLAG_DEFAULT);
| ^~~~~~~~~~~~~~~~~~~~~
| ESP_INTR_FLAG_LEVEL3
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:68:30: note: each undeclared identifier is reported only once for each function it appears in
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:69:43: error: 'drdy_isr_handler' undeclared (first use in this function)
69 | gpio_isr_handler_add(LIS3DSH_DRDY_IO, drdy_isr_handler, (void*) LIS3DSH_DRDY_IO);
| ^~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c: In function 'platform_init':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:74:5: error: implicit declaration of function 'ESP_ERROR_CHECK' [-Werror=implicit-function-declaration]
74 | ESP_ERROR_CHECK(i2c_master_init());
| ^~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:74:21: error: implicit declaration of function 'i2c_master_init'; did you mean 'i2c_master_write'? [-Werror=implicit-function-declaration]
74 | ESP_ERROR_CHECK(i2c_master_init());
| ^~~~~~~~~~~~~~~
| i2c_master_write
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c: In function 'platform_write':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:85:69: error: 'ACK_CHECK_EN' undeclared (first use in this function)
85 | i2c_master_write_byte(cmd, (LIS3DSH_I2C_SALVE_ADDR_L << 1) | 0, ACK_CHECK_EN);
| ^~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:89:93: error: 'portTICK_RATE_MS' undeclared (first use in this function); did you mean 'portTICK_PERIOD_MS'?
89 | ret = i2c_master_cmd_begin(LIS3DSH_I2C_MASTER_NUM, cmd, LIS3DSH_I2C_MASTER_TIMEOUT_MS / portTICK_RATE_MS);
| ^~~~~~~~~~~~~~~~
| portTICK_PERIOD_MS
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c: In function 'platform_read':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:99:69: error: 'ACK_CHECK_EN' undeclared (first use in this function)
99 | i2c_master_write_byte(cmd, (LIS3DSH_I2C_SALVE_ADDR_L << 1) | 1, ACK_CHECK_EN);
| ^~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:101:37: error: 'ACK_VAL' undeclared (first use in this function)
101 | i2c_master_read(cmd, bufp, len, ACK_VAL);
| ^~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:103:93: error: 'portTICK_RATE_MS' undeclared (first use in this function); did you mean 'portTICK_PERIOD_MS'?
103 | ret = i2c_master_cmd_begin(LIS3DSH_I2C_MASTER_NUM, cmd, LIS3DSH_I2C_MASTER_TIMEOUT_MS / portTICK_RATE_MS);
| ^~~~~~~~~~~~~~~~
| portTICK_PERIOD_MS
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c: In function 'lis3dsh_init':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:125:5: error: 'dev_ctx' undeclared (first use in this function); did you mean 'dev_t'?
125 | dev_ctx.handle = (void *)platform_init();
| ^~~~~~~
| dev_t
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:116:27: warning: unused variable 'all_sources' [-Wunused-variable]
116 | lis3dsh_all_sources_t all_sources;
| ^~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c: In function 'lis3dsh_read_task':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:204:31: error: 'dev_ctx' undeclared (first use in this function); did you mean 'dev_t'?
204 | lis3dsh_read_reg(&dev_ctx, LIS3DSH_FIFO_SRC, &reg.byte, 1);
| ^~~~~~~
| dev_t
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:212:36: error: 'lis3dsh_data_t' has no member named 'a'
212 | lis3dsh_data[buf_r].a[0] = (int16_t)(rx_buffer[0] | (rx_buffer[1] << 8)) * 2.0 / 0x7fff;
| ^
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:213:36: error: 'lis3dsh_data_t' has no member named 'a'
213 | lis3dsh_data[buf_r].a[1] = (int16_t)(rx_buffer[2] | (rx_buffer[3] << 8)) * 2.0 / 0x7fff; // y 有重力加速度分量计算fft的时候需要去掉
| ^
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:214:36: error: 'lis3dsh_data_t' has no member named 'a'
214 | lis3dsh_data[buf_r].a[2] = (int16_t)(rx_buffer[4] | (rx_buffer[5] << 8)) * 2.0 / 0x7fff;
| ^
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:231:5: error: implicit declaration of function 'ql_rtos_task_delete' [-Werror=implicit-function-declaration]
231 | ql_rtos_task_delete(NULL);
| ^~~~~~~~~~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c: In function 'fft_calculate_task':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:284:67: error: 'lis3dsh_data_t' has no member named 'a'
284 | fft_data.y_cf[i * 2 + 0] = lis3dsh_data[fft_h + i].a[ch1 - 1] * fft_data.wind[i];
| ^
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:285:67: error: 'lis3dsh_data_t' has no member named 'a'
285 | fft_data.y_cf[i * 2 + 1] = lis3dsh_data[fft_h + i].a[ch2 - 1] * fft_data.wind[i];
| ^
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c: In function 'shake_detect_init':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:343:29: warning: passing argument 1 of 'xTaskCreatePinnedToCore' from incompatible pointer type [-Wincompatible-pointer-types]
343 | xTaskCreatePinnedToCore(lis3dsh_read_task, "lis3dsh_read_task", 4096, NULL, 9, NULL, tskNO_AFFINITY);
| ^~~~~~~~~~~~~~~~~
| |
| void (*)(void)
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:5:
E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include/freertos/task.h:345:56: note: expected 'TaskFunction_t' {aka 'void (*)(void *)'} but argument is of type 'void (*)(void)'
345 | BaseType_t xTaskCreatePinnedToCore( TaskFunction_t pvTaskCode,
| ~~~~~~~~~~~~~~~^~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:344:29: warning: passing argument 1 of 'xTaskCreatePinnedToCore' from incompatible pointer type [-Wincompatible-pointer-types]
344 | xTaskCreatePinnedToCore(fft_calculate_task, "fft_calculate_task", 4096, NULL, 9, NULL, tskNO_AFFINITY);
| ^~~~~~~~~~~~~~~~~~
| |
| void (*)(void)
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:5:
E:/Espressif/frameworks/esp-idf-v5.0.4/components/freertos/FreeRTOS-Kernel/include/freertos/task.h:345:56: note: expected 'TaskFunction_t' {aka 'void (*)(void *)'} but argument is of type 'void (*)(void)'
345 | BaseType_t xTaskCreatePinnedToCore( TaskFunction_t pvTaskCode,
| ~~~~~~~~~~~~~~~^~~~~~~~~~
At top level:
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:21:18: warning: 'lis3dsh_i2c_master_init' defined but not used [-Wunused-function]
21 | static esp_err_t lis3dsh_i2c_master_init(void)
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1.exe: some warnings being treated as errors
ninja: build stopped: subcommand failed.