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

101 lines
8.2 KiB
Plaintext

[1/10] 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/8] 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:192:23: warning: assignment to 'stmdev_write_ptr' {aka 'long int (*)(void *, unsigned char, unsigned char *, short unsigned int)'} from incompatible pointer type 'int32_t (*)(uint8_t, uint8_t *, uint16_t)' {aka 'long int (*)(unsigned char, unsigned char *, short unsigned int)'} [-Wincompatible-pointer-types]
192 | dev_ctx.write_reg = platform_write;
| ^
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:193:22: warning: assignment to 'stmdev_read_ptr' {aka 'long int (*)(void *, unsigned char, unsigned char *, short unsigned int)'} from incompatible pointer type 'int32_t (*)(uint8_t, uint8_t *, uint16_t)' {aka 'long int (*)(unsigned char, unsigned char *, short unsigned int)'} [-Wincompatible-pointer-types]
193 | dev_ctx.read_reg = platform_read;
| ^
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:183:24: warning: unused variable 'bus_mode' [-Wunused-variable]
183 | lis3dsh_bus_mode_t bus_mode;
| ^~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:182:27: warning: unused variable 'all_sources' [-Wunused-variable]
182 | lis3dsh_all_sources_t all_sources;
| ^~~~~~~~~~~
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:181:30: warning: unused variable 'int1_route' [-Wunused-variable]
181 | lis3dsh_pin_int1_route_t int1_route;
| ^~~~~~~~~~
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:374:23: warning: unused variable 'freq' [-Wunused-variable]
374 | float freq = i * 1.0 / N_SAMPLES * 1600; // 单位HZ
| ^~~~
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:414:29: warning: passing argument 1 of 'xTaskCreatePinnedToCore' from incompatible pointer type [-Wincompatible-pointer-types]
414 | 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:415:29: warning: passing argument 1 of 'xTaskCreatePinnedToCore' from incompatible pointer type [-Wincompatible-pointer-types]
415 | 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: In function 'lis3dsh_calculating_angle':
E:/Espressif/frameworks/esp-idf-v5.0.4/app/esp32_shock/components/lis3dsh/shake_detect.c:421:11: warning: unused variable 'axy' [-Wunused-variable]
421 | float axy = sqrt(ax * ax + ay * ay);
| ^~~
[3/8] Linking C static library esp-idf\lis3dsh\liblis3dsh.a
[4/8] Generating ld/sections.ld
[5/8] Linking CXX executable esp32_shock.elf
[6/8] 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
[7/8] 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 0x42a30 bytes. Smallest app partition is 0x100000 bytes. 0xbd5d0 bytes (74%) free.
[7/8] 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 2MB 0x0 bootloader/bootloader.bin 0x10000 esp32_shock.bin 0x8000 partition_table/partition-table.bin
esptool.py v4.6.2
Serial port COM78
Connecting...
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: f4:12:fa:a0:a4:c4
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00005fff...
Flash will be erased from 0x00010000 to 0x00052fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 20608 bytes to 13095...
Writing at 0x00000000... (100 %)
Wrote 20608 bytes (13095 compressed) at 0x00000000 in 0.3 seconds (effective 584.1 kbit/s)...
Hash of data verified.
Compressed 272944 bytes to 154315...
Writing at 0x00010000... (10 %)
Writing at 0x0001888f... (20 %)
Writing at 0x000208ba... (30 %)
Writing at 0x00026737... (40 %)
Writing at 0x0002c946... (50 %)
Writing at 0x0003211b... (60 %)
Writing at 0x0003aeff... (70 %)
Writing at 0x00044471... (80 %)
Writing at 0x0004a088... (90 %)
Writing at 0x0004fedc... (100 %)
Wrote 272944 bytes (154315 compressed) at 0x00010000 in 1.7 seconds (effective 1251.4 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 684.7 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...