esp32_shock/build/log/idf_py_stdout_output_10076

96 lines
10 KiB
Plaintext
Raw Normal View History

2024-04-29 17:35:50 +08:00
[1/14] 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.
[2/12] Building C object esp-idf/twai_communication/CMakeFiles/__idf_twai_communication.dir/twai_communication.c.obj
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/twai_communication/twai_communication.c: In function 'twai_send_data':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/twai_communication/twai_communication.c:363:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
363 | uint8_t *data_p = data;
| ^~~~
[3/12] Building C object esp-idf/lis3dsh/CMakeFiles/__idf_lis3dsh.dir/shake_detect.c.obj
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:160:26: warning: unused variable 'status' [-Wunused-variable]
160 | lis3dsh_status_var_t status;
| ^~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:159:24: warning: unused variable 'bus_mode' [-Wunused-variable]
159 | lis3dsh_bus_mode_t bus_mode;
| ^~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:158:27: warning: unused variable 'all_sources' [-Wunused-variable]
158 | lis3dsh_all_sources_t all_sources;
| ^~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:157:30: warning: unused variable 'int1_route' [-Wunused-variable]
157 | lis3dsh_pin_int1_route_t int1_route;
| ^~~~~~~~~~
In file included from E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:16:
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:610:38: warning: passing argument 2 of 'twai_send_data' from incompatible pointer type [-Wincompatible-pointer-types]
610 | twai_send_fft_array_data(feq_data, N_SAMPLES / 2);
| ^~~~~~~~
| |
| float *
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/twai_communication/twai_communication.h:82:83: note: in definition of macro 'twai_send_fft_array_data'
82 | #define twai_send_fft_array_data(data, len) twai_send_data(SEND_FFT_ARRAY_ID, data, len, twai_fft_array_data_send_enable)
| ^~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/twai_communication/twai_communication.h:86:56: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'float *'
86 | int twai_send_data(uint32_t identifier, const uint8_t *data, int len, bool enable);
| ~~~~~~~~~~~~~~~^~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:571:26: warning: unused variable 'end_b' [-Wunused-variable]
571 | unsigned int end_b = dsp_get_cpu_cycle_count();
| ^~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:564:26: warning: unused variable 'start_b' [-Wunused-variable]
564 | unsigned int start_b = dsp_get_cpu_cycle_count();
| ^~~~~~~
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:682:29: warning: passing argument 1 of 'xTaskCreatePinnedToCore' from incompatible pointer type [-Wincompatible-pointer-types]
682 | 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:6:
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:683:29: warning: passing argument 1 of 'xTaskCreatePinnedToCore' from incompatible pointer type [-Wincompatible-pointer-types]
683 | 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:6:
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:684:29: warning: passing argument 1 of 'xTaskCreatePinnedToCore' from incompatible pointer type [-Wincompatible-pointer-types]
684 | xTaskCreatePinnedToCore(angle_calculate_task, "angle_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:6:
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,
| ~~~~~~~~~~~~~~~^~~~~~~~~~
[4/12] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/esp32_shock_main.c.obj
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/main/esp32_shock_main.c:11:20: warning: 'TAG' defined but not used [-Wunused-variable]
11 | static const char *TAG = "esp32_shock_main";
| ^~~
[5/12] Linking C static library esp-idf\lis3dsh\liblis3dsh.a
[6/12] Linking C static library esp-idf\twai_communication\libtwai_communication.a
[7/12] Linking C static library esp-idf\main\libmain.a
[8/12] Generating ld/sections.ld
[9/12] Linking CXX executable esp32_shock.elf
[10/12] Generating binary image from built executable
esptool.py v4.6.2
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
Generated E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/build/esp32_shock.bin
[11/12] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\esp32_shock\build\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 partition --type app E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/build/partition_table/partition-table.bin E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/build/esp32_shock.bin"
esp32_shock.bin binary size 0x4c5c0 bytes. Smallest app partition is 0x100000 bytes. 0xb3a40 bytes (70%) free.
[11/12] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\components\esptool_py && E:\Espressif\tools\cmake\3.24.0\bin\cmake.exe -D IDF_PATH=E:/Espressif/frameworks/esp-idf-v5.0.4 -D SERIAL_TOOL=E:/Espressif/python_env/idf5.0_py3.11_env/Scripts/python.exe;;E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py/esptool/esptool.py;--chip;esp32s3 -D SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args -D WORKING_DIRECTORY=E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/build -P E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py/run_serial_tool.cmake"
esptool esp32s3 -p COM78 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 4MB 0x0 bootloader/bootloader.bin 0x10000 esp32_shock.bin 0x8000 partition_table/partition-table.bin 0xd000 ota_data_initial.bin
esptool.py v4.6.2
Serial port COM78
A fatal error occurred: Could not open COM78, the port doesn't exist
FAILED: CMakeFiles/flash E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/build/CMakeFiles/flash
cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\components\esptool_py && E:\Espressif\tools\cmake\3.24.0\bin\cmake.exe -D IDF_PATH=E:/Espressif/frameworks/esp-idf-v5.0.4 -D SERIAL_TOOL=E:/Espressif/python_env/idf5.0_py3.11_env/Scripts/python.exe;;E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py/esptool/esptool.py;--chip;esp32s3 -D SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args -D WORKING_DIRECTORY=E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/build -P E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py/run_serial_tool.cmake"
ninja: build stopped: subcommand failed.