[1/5] cmd.exe /C "cd /D F:\project\esp32\ESP32AI\ESP32-1.54inch-AI\code\1.6.0\240418-c3\xiaozhi-esp32\build\esp-idf\esptool_py && D:\Aw\A\esp\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:/Aw/A/esp/Espressif/frameworks/esp-idf-v5.3.1/components/partition_table/check_sizes.py --offset 0x8000 partition --type app F:/project/esp32/ESP32AI/ESP32-1.54inch-AI/code/1.6.0/240418-c3/xiaozhi-esp32/build/partition_table/partition-table.bin F:/project/esp32/ESP32AI/ESP32-1.54inch-AI/code/1.6.0/240418-c3/xiaozhi-esp32/build/xiaozhi.bin"
xiaozhi.bin binary size 0x3c3190 bytes. Smallest app partition is 0x600000 bytes. 0x23ce70 bytes (37%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D F:\project\esp32\ESP32AI\ESP32-1.54inch-AI\code\1.6.0\240418-c3\xiaozhi-esp32\build\bootloader\esp-idf\esptool_py && D:\Aw\A\esp\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe D:/Aw/A/esp/Espressif/frameworks/esp-idf-v5.3.1/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 F:/project/esp32/ESP32AI/ESP32-1.54inch-AI/code/1.6.0/240418-c3/xiaozhi-esp32/build/bootloader/bootloader.bin"

Bootloader binary size 0x3f20 bytes. 0x40e0 bytes (51%) free.


[2/3] cmd.exe /C "cd /D D:\Aw\A\esp\Espressif\frameworks\esp-idf-v5.3.1\components\esptool_py && D:\Aw\A\esp\Espressif\tools\cmake\3.24.0\bin\cmake.exe -D IDF_PATH=D:/Aw/A/esp/Espressif/frameworks/esp-idf-v5.3.1 -D SERIAL_TOOL=D:/Aw/A/esp/Espressif/python_env/idf5.3_py3.11_env/Scripts/python.exe;;D:/Aw/A/esp/Espressif/frameworkesptool.py --chip esp32s3 -p COM1516 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 16MB 0x0 bootloader/bootloader.bin 0x100000 xiaozhi.bin 0x8000 partition_table/partition-table.bin 0xd000 ota_data_initial.bin 0x10000 srmodels/srmodels.bin
esptool.py v4.8.1
Serial port COM1516
Connecting...
Chip is ESP32-S3 (QFN56) (revision v0.2)
Features: WiFi, BLE, Embedded PSRAM 8MB (AP_3v3)
Crystal is 40MHz
MAC: 98:3d:ae:61:97:64
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00100000 to 0x004c3fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000d000 to 0x0000efff...
Flash will be erased from 0x00010000 to 0x0009efff...
SHA digest in image updated
Compressed 16160 bytes to 11221...
Writing at 0x00000000... (100 %)
Wrote 16160 bytes (11221 compressed) at 0x00000000 in 0.3 seconds (effective 443.6 kbit/s)...
Hash of data verified.
Compressed 3944848 bytes to 2426651...
Writing at 0x00100000... (0 %)
Writing at 0x0010cb8d... (1 %)
Writing at 0x0011bda2... (2 %)
Writing at 0x00128063... (2 %)
Writing at 0x0012c322... (3 %)
Writing at 0x001305e3... (4 %)
Writing at 0x0013487e... (4 %)
Writing at 0x00138bf8... (5 %)
Writing at 0x0013cee6... (6 %)
Writing at 0x001411b0... (6 %)
Writing at 0x0014547f... (7 %)
Writing at 0x00149663... (8 %)
Writing at 0x0014d91c... (8 %)
Writing at 0x00151c84... (9 %)
Writing at 0x00155f8c... (10 %)
Writing at 0x0015a29c... (10 %)
Writing at 0x0015e4f3... (11 %)
Writing at 0x00162643... (12 %)
Writing at 0x0016681f... (12 %)
Writing at 0x0016aaf1... (13 %)
Writing at 0x0016f561... (14 %)
Writing at 0x00173979... (14 %)
Writing at 0x00177ca3... (15 %)
Writing at 0x0017bf39... (16 %)
Writing at 0x00180174... (16 %)
Writing at 0x00184735... (17 %)
Writing at 0x0018c835... (18 %)
Writing at 0x0019c08c... (18 %)
Writing at 0x001a5a81... (19 %)
Writing at 0x001b77f2... (20 %)
Writing at 0x001c246e... (20 %)
Writing at 0x001c9818... (21 %)
Writing at 0x001cfbed... (22 %)
Writing at 0x001d5925... (22 %)
Writing at 0x001dbebf... (23 %)
Writing at 0x001e1596... (24 %)
Writing at 0x001e74ab... (24 %)
Writing at 0x001ece41... (25 %)
Writing at 0x001f2f57... (26 %)
Writing at 0x001f8f63... (26 %)
Writing at 0x001fe8ec... (27 %)
Writing at 0x00204311... (28 %)
Writing at 0x00209b4a... (28 %)
Writing at 0x0020f7af... (29 %)
Writing at 0x00214d9c... (30 %)
Writing at 0x0021ab82... (30 %)
Writing at 0x00220093... (31 %)
Writing at 0x002254e9... (32 %)
Writing at 0x0022aab0... (32 %)
Writing at 0x002305ea... (33 %)
Writing at 0x00235cd5... (34 %)
Writing at 0x0023b69d... (34 %)
Writing at 0x00240a05... (35 %)
Writing at 0x0024619c... (36 %)
Writing at 0x0024bb56... (36 %)
Writing at 0x00251f04... (37 %)
Writing at 0x002577ca... (38 %)
Writing at 0x0025cc48... (38 %)
Writing at 0x00262725... (39 %)
Writing at 0x00267b63... (40 %)
Writing at 0x0026d545... (40 %)
Writing at 0x00272c1c... (41 %)
Writing at 0x00278327... (42 %)
Writing at 0x0027d744... (42 %)
Writing at 0x00282aae... (43 %)
Writing at 0x00287992... (44 %)
Writing at 0x0029a352... (44 %)
Writing at 0x0029fe76... (45 %)
Writing at 0x002a550f... (46 %)
Writing at 0x002ab2cc... (46 %)
Writing at 0x002b00c9... (47 %)
Writing at 0x002b520a... (48 %)
Writing at 0x002bbbe8... (48 %)
Writing at 0x002c1ad7... (49 %)
Writing at 0x002c7330... (50 %)
Writing at 0x002d14c3... (51 %)
Writing at 0x002e1c85... (51 %)
Writing at 0x002f1664... (52 %)
Writing at 0x002f7a0b... (53 %)
Writing at 0x002fe669... (53 %)
Writing at 0x00305aa5... (54 %)
Writing at 0x0030cbe8... (55 %)
Writing at 0x00312b2f... (55 %)
Writing at 0x00317a9e... (56 %)
Writing at 0x0031c851... (57 %)
Writing at 0x00321857... (57 %)
Writing at 0x003269a5... (58 %)
Writing at 0x0032b6ec... (59 %)
Writing at 0x003304c4... (59 %)
Writing at 0x003358a1... (60 %)
Writing at 0x0033ae40... (61 %)
Writing at 0x00340ca7... (61 %)
Writing at 0x003461a5... (62 %)
Writing at 0x0034c20d... (63 %)
Writing at 0x00351996... (63 %)
Writing at 0x0035765b... (64 %)
Writing at 0x003725f1... (65 %)
Writing at 0x0037d5ff... (65 %)
Writing at 0x003841a9... (66 %)
Writing at 0x0038a645... (67 %)
Writing at 0x003900eb... (67 %)
Writing at 0x00395d26... (68 %)
Writing at 0x0039bd59... (69 %)
Writing at 0x003a2002... (69 %)
Writing at 0x003a7c41... (70 %)
Writing at 0x003aea97... (71 %)
Writing at 0x003b5d84... (71 %)
Writing at 0x003bc548... (72 %)
Writing at 0x003c28cc... (73 %)
Writing at 0x003c949f... (73 %)
Writing at 0x003cf4bb... (74 %)
Writing at 0x003d4e79... (75 %)
Writing at 0x003dae5c... (75 %)
Writing at 0x003e0c48... (76 %)
Writing at 0x003e68e2... (77 %)
Writing at 0x003ed2bc... (77 %)
Writing at 0x003f3477... (78 %)
Writing at 0x003f90ee... (79 %)
Writing at 0x003ff0b5... (79 %)
Writing at 0x004055af... (80 %)
Writing at 0x0040b624... (81 %)
Writing at 0x00410db9... (81 %)
Writing at 0x00415c71... (82 %)
Writing at 0x0041aec2... (83 %)
Writing at 0x0041fdae... (83 %)
Writing at 0x004251d6... (84 %)
Writing at 0x0042a4e4... (85 %)
Writing at 0x0042faa8... (85 %)
Writing at 0x00436384... (86 %)
Writing at 0x0043baff... (87 %)
Writing at 0x004418aa... (87 %)
Writing at 0x004485a7... (88 %)
Writing at 0x0045154c... (89 %)
Writing at 0x0045951b... (89 %)
Writing at 0x00462212... (90 %)
Writing at 0x00467631... (91 %)
Writing at 0x0046d3b1... (91 %)
Writing at 0x00472dbd... (92 %)
Writing at 0x00479f9c... (93 %)
Writing at 0x00484508... (93 %)
Writing at 0x0048b1e6... (94 %)
Writing at 0x00493d45... (95 %)
Writing at 0x0049abfd... (95 %)
Writing at 0x004a01f3... (96 %)
Writing at 0x004a8d69... (97 %)
Writing at 0x004af74e... (97 %)
Writing at 0x004b563d... (98 %)
Writing at 0x004bb8de... (99 %)
Writing at 0x004c257a... (100 %)
Wrote 3944848 bytes (2426651 compressed) at 0x00100000 in 32.7 seconds (effective 964.5 kbit/s)...

A serial exception error occurred: Cannot configure port, something went wrong. Original message: PermissionError(13, '设备不识别此命令。', None, 22)
Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
s/esp-idf-v5.3.1/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=F:/project/esp32/ESP32AI/ESP32-1.54inch-AI/code/1.6.0/240418-c3/xiaozhi-esp32/build -P D:/Aw/A/esp/Espressif/frameworks/esp-idf-v5.3.1/components/esptool_py/run_serial_tool.cmake"
FAILED: CMakeFiles/flash F:/project/esp32/ESP32AI/ESP32-1.54inch-AI/code/1.6.0/240418-c3/xiaozhi-esp32/build/CMakeFiles/flash 
cmd.exe /C "cd /D D:\Aw\A\esp\Espressif\frameworks\esp-idf-v5.3.1\components\esptool_py && D:\Aw\A\esp\Espressif\tools\cmake\3.24.0\bin\cmake.exe -D IDF_PATH=D:/Aw/A/esp/Espressif/frameworks/esp-idf-v5.3.1 -D SERIAL_TOOL=D:/Aw/A/esp/Espressif/python_env/idf5.3_py3.11_env/Scripts/python.exe;;D:/Aw/A/esp/Espressif/frameworks/esp-idf-v5.3.1/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=F:/project/esp32/ESP32AI/ESP32-1.54inch-AI/code/1.6.0/240418-c3/xiaozhi-esp32/build -P D:/Aw/A/esp/Espressif/frameworks/esp-idf-v5.3.1/components/esptool_py/run_serial_tool.cmake"
ninja: build stopped: subcommand failed.
