esp-skainet的example选择 esp32s3,并在menuconfig中设置esp-box,编译并烧录,发现无法正常工作,报错如下:
E (372) SPIFFS: spiffs partition could not be found
ESP-SKAINET中的example在ESP-BOX上无法正常工作
Re: ESP-SKAINET中的example在ESP-BOX上无法正常工作
补充一下完整log
Code: Select all
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd0108,len:0x1654
load:0x403b6000,len:0xb7c
load:0x403ba000,len:0x2f74
entry 0x403b6248
I (24) boot: ESP-IDF v4.4.1 2nd stage bootloader
I (24) boot: compile time 23:14:14
I (24) boot: chip revision: 0
I (26) boot.esp32s3: Boot SPI Speed : 80MHz
I (31) boot.esp32s3: SPI Mode : DIO
I (35) boot.esp32s3: SPI Flash Size : 2MB
I (40) boot: Enabling RNG early entropy source...
I (45) boot: Partition Table:
I (49) boot: ## Label Usage Type ST Offset Length
I (56) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (64) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (71) boot: 2 factory factory app 00 00 00010000 00100000
I (79) boot: End of partition table
I (83) esp_image: segment 0: paddr=00010020 vaddr=3c070020 size=20fc8h (135112) map
I (116) esp_image: segment 1: paddr=00030ff0 vaddr=3fc98e10 size=02894h ( 10388) load
I (118) esp_image: segment 2: paddr=0003388c vaddr=40374000 size=0c78ch ( 51084) load
I (133) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=6416ch (409964) map
I (207) esp_image: segment 4: paddr=000a4194 vaddr=4038078c size=08678h ( 34424) load
I (215) esp_image: segment 5: paddr=000ac814 vaddr=50000000 size=00010h ( 16) load
I (223) boot: Loaded app from partition at offset 0x10000
I (223) boot: Disabling RNG early entropy source...
I (235) cpu_start: Pro cpu up.
I (235) cpu_start: Starting app cpu, entry point is 0x403753e0
0x403753e0: call_start_cpu1 at D:/Espressif/frameworks/esp-idf-v4.4.1/components/esp_system/port/cpu_start.c:160
I (218) cpu_start: App cpu up.
I (249) cpu_start: Pro cpu start user code
I (249) cpu_start: cpu freq: 160000000
I (250) cpu_start: Application information:
I (252) cpu_start: Project name: wake_word_detection
I (258) cpu_start: App version: v0.3.0-105-g4847f52
I (264) cpu_start: Compile time: Jul 4 2022 23:13:46
I (270) cpu_start: ELF file SHA256: ef1d5c3a551a7151...
I (276) cpu_start: ESP-IDF: v4.4.1
I (281) heap_init: Initializing. RAM available for dynamic allocation:
I (288) heap_init: At 3FC9D720 len 000428E0 (266 KiB): D/IRAM
I (295) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM
I (301) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (308) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (314) spi_flash: detected chip: gd
I (318) spi_flash: flash io: dio
W (322) spi_flash: Detected size(16384k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (336) sleep: Configure to isolate all GPIO pins in sleep state
I (342) sleep: Enable automatic switching of GPIO sleep configuration
I (350) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
Initializing SPIFFS
E (372) SPIFFS: spiffs partition could not be found
Failed to find SPIFFS partition
I (382) I2S: DMA Malloc info, datalen=blocksize=1280, dma_buf_count=6
I (382) I2S: DMA Malloc info, datalen=blocksize=1280, dma_buf_count=6
I (392) I2S: I2S1, MCLK output by GPIO2
I (402) ES7210: ES7210 in Slave mode
I (402) ES7210: Enable ES7210_INPUT_MIC1
I (402) ES7210: Enable ES7210_INPUT_MIC2
I (412) ES7210: Enable ES7210_INPUT_MIC3
I (412) ES7210: Enable ES7210_INPUT_MIC4
I (422) ES7210: The ES7210_CLOCK_OFF_REG01 value before stop is 0
I (432) ES7210: Enable ES7210_INPUT_MIC1
I (432) ES7210: Enable ES7210_INPUT_MIC2
I (432) ES7210: Enable ES7210_INPUT_MIC3
I (442) ES7210: Enable ES7210_INPUT_MIC4
I (452) DRV8311: ES8311 in Slave mode
I (462) gpio: GPIO[46]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
Item psram alloc failed. Size: 3092 = 1536 x 2 + 16 + 4
Item psram alloc failed. Size: 8212 = 2048 x 4 + 16 + 4
Item psram alloc failed. Size: 4120 = 1025 x 4 + 16 + 4
Item psram alloc failed. Size: 16404 = 4096 x 4 + 16 + 4
Item psram alloc failed. Size: 16404 = 4096 x 4 + 16 + 4
Item psram alloc failed. Size: 4116 = 2048 x 2 + 16 + 4
Item psram alloc failed. Size: 2068 = 1024 x 2 + 16 + 4
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x2b (SPI_FAST_FLASH_BOOT)
Saved PC:0x40375964
0x40375964: esp_restart_noos at D:/Espressif/frameworks/esp-idf-v4.4.1/components/esp_system/port/soc/esp32s3/system_internal.c:143 (discriminator 1)
Re: ESP-SKAINET中的example在ESP-BOX上无法正常工作
将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
-
- Posts: 96
- Joined: Wed Nov 10, 2021 9:28 am
Re: ESP-SKAINET中的example在ESP-BOX上无法正常工作
编译前运行这个, cp sdkconfig.defaults.esp32s3 sdkconfigssssss wrote: ↑Mon Jul 04, 2022 3:53 pm将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
menuconfig 中 Partition Table -> Partition Table 修改为 Custom partition table csv
Who is online
Users browsing this forum: No registered users and 22 guests