Seeed-Studio / sscma-example-esp32

Example of SenseCraft Model Assistant Model deployment related to ESP32
22 stars 12 forks source link

ninja: build stopped: subcommand failed. #15

Open chenlei76s opened 8 months ago

chenlei76s commented 8 months ago

I use your 1.0.0 branch, after idf.py set-target esp32s3 and idf.py build, there are below errors: Error: app partition is too small for binary yolo.bin size 0x1366b0

[1240/1241] Generating binary image from built executable
esptool.py vv4.8.dev1
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
Generated /home/esp/sscma-example-esp32/examples/yolo/build/yolo.bin
[1241/1241] cd /home/esp/sscma-example-esp32/examples/yolo/build/esp-idf/...tion-table.bin /home/esp/sscma-example-esp32/examples/yolo/build/yolo.bin
FAILED: esp-idf/esptool_py/CMakeFiles/app_check_size /home/esp/sscma-example-esp32/examples/yolo/build/esp-idf/esptool_py/CMakeFiles/app_check_size 
cd /home/esp/sscma-example-esp32/examples/yolo/build/esp-idf/esptool_py && /home/chenlei/.espressif/python_env/idf5.3_py3.8_env/bin/python /home/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 partition --type app /home/esp/sscma-example-esp32/examples/yolo/build/partition_table/partition-table.bin /home/esp/sscma-example-esp32/examples/yolo/build/yolo.bin
Error: app partition is too small for binary yolo.bin size 0x1366b0:
  - Part 'factory' 0/0 @ 0x10000 size 0x100000 (overflow 0x366b0)
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /home/esp/sscma-example-esp32/examples/yolo/build/log/idf_py_stderr_output_27975 and /home/esp/sscma-example-esp32/examples/yolo/build/log/idf_py_stdout_output_27975

Do you know how to fix the problem? thanks

LynnL4 commented 8 months ago

hello, We only tested this project in IDF5.1. Which version of IDF are you using? I will verify its compatibility. Also, if you have XIAO ESP32S3, you can easily obtain AI related functions through https://seeed-studio.github.io/SenseCraft-Web-Toolkit/#/setup/process. Thank you.

chenlei76s commented 8 months ago

fixed. by enlarge the flash