ESP-BOX编译错误

ssssss
Posts: 31
Joined: Thu Jun 16, 2022 3:10 pm

ESP-BOX编译错误

Postby ssssss » Thu Jul 07, 2022 1:43 pm

在烧录的时候错误如下:
PS D:\Espressif\frameworks\esp-idf-v4.4.1\esp-skainet\examples\cn_speech_commands_recognition> idf.py flash
Executing action: flash
Serial port COM8
Connecting...
Detecting chip type... ESP32-S3
Running ninja in directory d:\espressif\frameworks\esp-idf-v4.4.1\esp-skainet\examples\cn_speech_commands_recognition\build
Executing "ninja flash"...
[1/7] cmd.exe /C "cd /D D:\Espressif\frameworks\esp-idf-v4...ommands_recognition/build/speech_commands_recognition.bin"
speech_commands_recognition.bin binary size 0xa8570 bytes. Smallest app partition is 0x200000 bytes. 0x157a90 bytes (67%) free.
[2/7] Running move model...
D:/Espressif/frameworks/esp-idf-v4.4.1/esp-skainet/examples/cn_speech_commands_recognition/sdkconfig
D:/Espressif/frameworks/esp-idf-v4.4.1/esp-skainet/components/esp-sr/model
alexa8
mn4_5cn
Recommended model partition size: 3852KB
[3/7] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D D:\Espressif\frameworks\esp-idf-v4.4.1\esp-skainet\examples\cn_speech_commands_recognition\build\bootloader\esp-idf\esptool_py && D:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe D:/Espressif/frameworks/esp-idf-v4.4.1/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 D:/Espressif/frameworks/esp-idf-v4.4.1/esp-skainet/examples/cn_speech_commands_recognition/build/bootloader/bootloader.bin"
Bootloader binary size 0x51a0 bytes. 0x2e60 bytes (36%) free.
[4/5] cmd.exe /C "cd /D D:\Espressif\frameworks\esp-idf-v4...sp-idf-v4.4.1/components/esptool_py/run_serial_tool.cmake"
esptool.py esp32s3 -p COM8 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 16MB 0x0 bootloader/bootloader.bin 0x10000 speech_commands_recognition.bin 0x8000 partition_table/partition-table.bin 0x210000 model.bin
esptool.py v3.3-dev
Serial port COM8
Connecting...
Chip is ESP32-S3
Features: WiFi, BLE
Crystal is 40MHz
MAC: 7c:df:a1:e1:be:88
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 0x000b8fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x00210000 to 0x0071bfff...
Compressed 20896 bytes to 13058...
Writing at 0x00000000... (100 %)
Wrote 20896 bytes (13058 compressed) at 0x00000000 in 0.5 seconds (effective 358.1 kbit/s)...
Hash of data verified.
Compressed 689520 bytes to 354357...
Writing at 0x00010000... (4 %)
Writing at 0x0001d23b... (9 %)
Writing at 0x00028884... (13 %)
Writing at 0x0003afdf... (18 %)
Writing at 0x00042ae4... (22 %)
Writing at 0x000484a1... (27 %)
Writing at 0x0004e9fb... (31 %)
Writing at 0x00054281... (36 %)
Writing at 0x00059bba... (40 %)
Writing at 0x0005f28e... (45 %)
Writing at 0x0006538a... (50 %)
Writing at 0x0006ba42... (54 %)
Writing at 0x000727bc... (59 %)
Writing at 0x0007ad35... (63 %)
Writing at 0x00081e79... (68 %)
Writing at 0x000887ba... (72 %)
Writing at 0x0008dc9c... (77 %)
Writing at 0x00096a38... (81 %)
Writing at 0x0009cdfb... (86 %)
Writing at 0x000a577f... (90 %)
Writing at 0x000adea8... (95 %)
Writing at 0x000b4308... (100 %)
Wrote 689520 bytes (354357 compressed) at 0x00010000 in 7.0 seconds (effective 793.2 kbit/s)...
Traceback (most recent call last):
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 468, in command
p = self.read()
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 413, in read
return next(self._slip_reader)
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 3540, in slip_reader
raise FatalError(msg)
__main__.FatalError: Packet content transfer stopped (received 8 bytes)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 5347, in <module>
_main()
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 5340, in _main
main()
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 4772, in main
operation_func(esp, args)
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 4004, in write_flash
res = esp.flash_md5sum(address, uncsize)
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 143, in inner
return func(*args, **kwargs)
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 942, in flash_md5sum
res = self.check_command('calculate md5sum', self.ESP_SPI_FLASH_MD5, struct.pack('<IIII', addr, size, 0, 0),
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 495, in check_command
val, data = self.command(op, data, chk, timeout=timeout)
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 484, in command
self._port.timeout = saved_timeout
File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\serial\serialutil.py", line 372, in timeout
self._reconfigure_port()
File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\serial\serialwin32.py", line 222, in _reconfigure_port
raise SerialException(
serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: PermissionError(13, ' 设备不识别此命令。', None, 22)
CMake Error at run_serial_tool.cmake:56 (message):
D:/Espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe
D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py
--chip esp32s3 failed


FAILED: CMakeFiles/flash
cmd.exe /C "cd /D D:\Espressif\frameworks\esp-idf-v4.4.1\components\esptool_py && D:\Espressif\tools\cmake\3.20.3\bin\cmake.exe -D IDF_PATH="D:/Espressif/frameworks/esp-idf-v4.4.1" -D SERIAL_TOOL="D:/Espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe D:/Espressif/frameworks/esp-idf-v4.4.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="D:/Espressif/frameworks/esp-idf-v4.4.1/esp-skainet/examples/cn_speech_commands_recognition/build" -P D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/run_serial_tool.cmake"
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

ESP_Rachel
Posts: 96
Joined: Wed Nov 10, 2021 9:28 am

Re: ESP-BOX编译错误

Postby ESP_Rachel » Tue Jul 12, 2022 3:20 am

ssssss wrote:
Thu Jul 07, 2022 1:43 pm
在烧录的时候错误如下:
PS D:\Espressif\frameworks\esp-idf-v4.4.1\esp-skainet\examples\cn_speech_commands_recognition> idf.py flash
Executing action: flash
Serial port COM8
Connecting...
Detecting chip type... ESP32-S3
Running ninja in directory d:\espressif\frameworks\esp-idf-v4.4.1\esp-skainet\examples\cn_speech_commands_recognition\build
Executing "ninja flash"...
[1/7] cmd.exe /C "cd /D D:\Espressif\frameworks\esp-idf-v4...ommands_recognition/build/speech_commands_recognition.bin"
speech_commands_recognition.bin binary size 0xa8570 bytes. Smallest app partition is 0x200000 bytes. 0x157a90 bytes (67%) free.
[2/7] Running move model...
D:/Espressif/frameworks/esp-idf-v4.4.1/esp-skainet/examples/cn_speech_commands_recognition/sdkconfig
D:/Espressif/frameworks/esp-idf-v4.4.1/esp-skainet/components/esp-sr/model
alexa8
mn4_5cn
Recommended model partition size: 3852KB
[3/7] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D D:\Espressif\frameworks\esp-idf-v4.4.1\esp-skainet\examples\cn_speech_commands_recognition\build\bootloader\esp-idf\esptool_py && D:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe D:/Espressif/frameworks/esp-idf-v4.4.1/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 D:/Espressif/frameworks/esp-idf-v4.4.1/esp-skainet/examples/cn_speech_commands_recognition/build/bootloader/bootloader.bin"
Bootloader binary size 0x51a0 bytes. 0x2e60 bytes (36%) free.
[4/5] cmd.exe /C "cd /D D:\Espressif\frameworks\esp-idf-v4...sp-idf-v4.4.1/components/esptool_py/run_serial_tool.cmake"
esptool.py esp32s3 -p COM8 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 16MB 0x0 bootloader/bootloader.bin 0x10000 speech_commands_recognition.bin 0x8000 partition_table/partition-table.bin 0x210000 model.bin
esptool.py v3.3-dev
Serial port COM8
Connecting...
Chip is ESP32-S3
Features: WiFi, BLE
Crystal is 40MHz
MAC: 7c:df:a1:e1:be:88
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 0x000b8fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x00210000 to 0x0071bfff...
Compressed 20896 bytes to 13058...
Writing at 0x00000000... (100 %)
Wrote 20896 bytes (13058 compressed) at 0x00000000 in 0.5 seconds (effective 358.1 kbit/s)...
Hash of data verified.
Compressed 689520 bytes to 354357...
Writing at 0x00010000... (4 %)
Writing at 0x0001d23b... (9 %)
Writing at 0x00028884... (13 %)
Writing at 0x0003afdf... (18 %)
Writing at 0x00042ae4... (22 %)
Writing at 0x000484a1... (27 %)
Writing at 0x0004e9fb... (31 %)
Writing at 0x00054281... (36 %)
Writing at 0x00059bba... (40 %)
Writing at 0x0005f28e... (45 %)
Writing at 0x0006538a... (50 %)
Writing at 0x0006ba42... (54 %)
Writing at 0x000727bc... (59 %)
Writing at 0x0007ad35... (63 %)
Writing at 0x00081e79... (68 %)
Writing at 0x000887ba... (72 %)
Writing at 0x0008dc9c... (77 %)
Writing at 0x00096a38... (81 %)
Writing at 0x0009cdfb... (86 %)
Writing at 0x000a577f... (90 %)
Writing at 0x000adea8... (95 %)
Writing at 0x000b4308... (100 %)
Wrote 689520 bytes (354357 compressed) at 0x00010000 in 7.0 seconds (effective 793.2 kbit/s)...
Traceback (most recent call last):
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 468, in command
p = self.read()
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 413, in read
return next(self._slip_reader)
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 3540, in slip_reader
raise FatalError(msg)
__main__.FatalError: Packet content transfer stopped (received 8 bytes)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 5347, in <module>
_main()
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 5340, in _main
main()
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 4772, in main
operation_func(esp, args)
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 4004, in write_flash
res = esp.flash_md5sum(address, uncsize)
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 143, in inner
return func(*args, **kwargs)
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 942, in flash_md5sum
res = self.check_command('calculate md5sum', self.ESP_SPI_FLASH_MD5, struct.pack('<IIII', addr, size, 0, 0),
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 495, in check_command
val, data = self.command(op, data, chk, timeout=timeout)
File "D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py", line 484, in command
self._port.timeout = saved_timeout
File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\serial\serialutil.py", line 372, in timeout
self._reconfigure_port()
File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\serial\serialwin32.py", line 222, in _reconfigure_port
raise SerialException(
serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: PermissionError(13, ' 设备不识别此命令。', None, 22)
CMake Error at run_serial_tool.cmake:56 (message):
D:/Espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe
D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/esptool/esptool.py
--chip esp32s3 failed


FAILED: CMakeFiles/flash
cmd.exe /C "cd /D D:\Espressif\frameworks\esp-idf-v4.4.1\components\esptool_py && D:\Espressif\tools\cmake\3.20.3\bin\cmake.exe -D IDF_PATH="D:/Espressif/frameworks/esp-idf-v4.4.1" -D SERIAL_TOOL="D:/Espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe D:/Espressif/frameworks/esp-idf-v4.4.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="D:/Espressif/frameworks/esp-idf-v4.4.1/esp-skainet/examples/cn_speech_commands_recognition/build" -P D:/Espressif/frameworks/esp-idf-v4.4.1/components/esptool_py/run_serial_tool.cmake"
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
请试下手动进入下载模式再烧录,请按住 Boot 按键的同时按一下 Reset 按键进入“固件下载”模式。

Who is online

Users browsing this forum: No registered users and 28 guests