将partition表替换为 partitions_esp32,同时把flash变为16MB,在编译时出现以下问题,同时打印上面给出的错误日志,显示是分区问题?
Code: Select all
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/5] cmd.exe /C "cd /D D:\Espressif\frameworks\esp-idf-v4.4.1\esp-skainet\exa...examples/cn_speech_commands_recognition/build/speech_commands_recognition.bin"
speech_commands_recognition.bin binary size 0xa8570 bytes. Smallest app partition is 0x500000 bytes. 0x457a90 bytes (87%) free.
[2/5] 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.
[2/3] cmd.exe /C "cd /D D:\Espressif\frameworks\esp-idf-v4.4.1\components\espt...pressif/frameworks/esp-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
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...
Compressed 20896 bytes to 13057...
Writing at 0x00000000... (100 %)
Wrote 20896 bytes (13057 compressed) at 0x00000000 in 0.5 seconds (effective 355.9 kbit/s)...
Hash of data verified.
Compressed 689520 bytes to 354356...
Writing at 0x00010000... (4 %)
Writing at 0x0001d245... (9 %)
Writing at 0x00028890... (13 %)
Writing at 0x0003afe7... (18 %)
Writing at 0x00042aec... (22 %)
Writing at 0x000484a6... (27 %)
Writing at 0x0004e9fc... (31 %)
Writing at 0x00054283... (36 %)
Writing at 0x00059bbc... (40 %)
Writing at 0x0005f290... (45 %)
Writing at 0x0006538d... (50 %)
Writing at 0x0006ba44... (54 %)
Writing at 0x000727bd... (59 %)
Writing at 0x0007ad36... (63 %)
Writing at 0x00081e79... (68 %)
Writing at 0x000887bc... (72 %)
Writing at 0x0008dc9e... (77 %)
Writing at 0x00096a38... (81 %)
Writing at 0x0009ce00... (86 %)
Writing at 0x000a5788... (90 %)
Writing at 0x000adf3a... (95 %)
Writing at 0x000b4309... (100 %)
Wrote 689520 bytes (354356 compressed) at 0x00010000 in 7.0 seconds (effective 789.6 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