[1/5] cmd.exe /C "cd /D E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel\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/wheel/build/partition_table/partition-table.bin E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/build/wheel.bin" wheel.bin binary size 0xba650 bytes. Smallest app partition is 0x100000 bytes. 0x459b0 bytes (27%) free. [2/5] 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/3] 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/wheel/build -P E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py/run_serial_tool.cmake" esptool esp32s3 -p COM5 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x0 bootloader/bootloader.bin 0x10000 wheel.bin 0x8000 partition_table/partition-table.bin esptool.py v4.6.2 Serial port COM5 Connecting... Chip is ESP32-S3 (revision v0.1) Features: WiFi, BLE Crystal is 40MHz MAC: f4:12:fa:57:c4:a4 Uploading stub... Running stub... Stub running... Changing baud rate to 460800 Changed. Configuring flash size... Flash will be erased from 0x00000000 to 0x00004fff... Flash will be erased from 0x00010000 to 0x000cafff... Flash will be erased from 0x00008000 to 0x00008fff... Compressed 20368 bytes to 12917... Writing at 0x00000000... (100 %) Wrote 20368 bytes (12917 compressed) at 0x00000000 in 0.4 seconds (effective 421.9 kbit/s)... Hash of data verified. Compressed 763472 bytes to 479979... Writing at 0x00010000... (3 %) Writing at 0x0001cfe7... (6 %) Writing at 0x000276eb... (10 %) Writing at 0x0002cc1a... (13 %) Writing at 0x000363ff... (16 %) Writing at 0x0003c69c... (20 %) Writing at 0x00042936... (23 %) Writing at 0x000489e3... (26 %) Writing at 0x0004f232... (30 %) Writing at 0x000550d0... (33 %) Writing at 0x0005a4ef... (36 %) Writing at 0x0005fe91... (40 %) Writing at 0x0006556e... (43 %) Writing at 0x0006b235... (46 %) Writing at 0x00070fd2... (50 %) Writing at 0x000760d5... (53 %) Writing at 0x0007b0ce... (56 %) Writing at 0x000800de... (60 %) Writing at 0x0008553d... (63 %) Writing at 0x0008a7c7... (66 %) Writing at 0x0008fbac... (70 %) Writing at 0x00095b4a... (73 %) Writing at 0x0009b257... (76 %) Writing at 0x000a0cfe... (80 %) Writing at 0x000a6c58... (83 %) Writing at 0x000ac2e8... (86 %) Writing at 0x000b50c7... (90 %) Writing at 0x000bd086... (93 %) Writing at 0x000c2bfe... (96 %) Writing at 0x000c8523... (100 %) Wrote 763472 bytes (479979 compressed) at 0x00010000 in 8.2 seconds (effective 741.7 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 FAILED: CMakeFiles/flash E:/Espressif/frameworks/esp-idf-v5.0.4/app/wheel/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/wheel/build -P E:/Espressif/frameworks/esp-idf-v5.0.4/components/esptool_py/run_serial_tool.cmake" ninja: build stopped: subcommand failed.