lemariva / micropython-camera-driver

add camera support to MicroPython
https://lemariva.com
Apache License 2.0
460 stars 99 forks source link

FAILED: esp-idf/main/CMakeFiles/BUILD_FROZEN_CONTENT frozen_content.c and freeze error executing "/boards/manifest.py": Error in manifest file: /boards/manifest.py #85

Open xhgeya opened 1 year ago

xhgeya commented 1 year ago

Good day!

I am new here and just a new comer.

It is sucesssful to make firmware for ESP32, but when I am making a new firmware for my ESP32-CMA, I met the following 2 issues: .. .... [1094/1336] Generating ../../genhdr/qstrdefs.collected.h QSTR updated [1097/1336] cd /home/geya/esp/micropython/ports/esp32/build-ESP32_CAM/esp-idf/main && /ho...thon/ports/esp32/build-ESP32_CAM -f-march=xtensawin --mpy-tool-flags= /boards/manifest.py

FAILED: esp-idf/main/CMakeFiles/BUILD_FROZEN_CONTENT frozen_content.c

cd /home/geya/esp/micropython/ports/esp32/build-ESP32_CAM/esp-idf/main && /home/geya/.espressif/python_env/idf4.4_py3.8_env/bin/python3.8 /home/geya/esp/micropython/tools/makemanifest.py -o /home/geya/esp/micropython/ports/esp32/build-ESP32_CAM/frozen_content.c -v MPY_DIR=/home/geya/esp/micropython -v MPY_LIB_DIR=/home/geya/esp/micropython/lib/micropython-lib -v PORT_DIR=/home/geya/esp/micropython/ports/esp32 -v BOARD_DIR=/home/geya/esp/micropython/ports/esp32/boards/ESP32_CAM -b /home/geya/esp/micropython/ports/esp32/build-ESP32_CAM -f-march=xtensawin --mpy-tool-flags= /boards/manifest.py

freeze error executing "/boards/manifest.py": Error in manifest file: /boards/manifest.py: [Errno 2] No such file or directory: '/boards/manifest.py'

ninja: build stopped: subcommand failed. ninja failed with exit code 1 ... ... Q1:Is it due to the latest version of micropython, not the required one( MicroPython v1.18-63-feeeb5ea3-dirty )for CAM? Q2:Is location issue of /boards/manifest.py? Which manifest.py shall be care about?

If anyone met the same or similar issues like me, plese help ad many thanks in advance! Have a nice day! George

freshev commented 1 year ago

you should replace set(MICROPY_FROZEN_MANIFEST ${MICROPY_PORT_DIR}/boards/manifest.py) to set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py) in ./boards/ESP32_CAM/mpconfigboard.cmake

also you should create folder ./boards/ESP32_CAM/modules and comment

define MICROPY_PY_BLUETOOTH (0)

at ./boards/ESP32_CAM/mpconfigboard.h

at ./micropython/ports/esp32 folder run: 1) idf.py set-target esp32 2) idf.py -DUSER_C_MODULES=../../../../micropython-camera-driver/src/micropython.cmake -DMICROPY_BOARD=ESP32_CAM build 3) cd ./build;esptool.py --chip esp32 merge_bin -o flash_image.bin @flash_args;cd .. 4) esptool.py --chip auto --port /dev/ttyS0 --baud 921600 write_flash -z 0x0000 ./build/flash_image.bin

in case of ERROR: Call to MP_REGISTER_MODULE(camera, mp_module_camera_system, (1) replace MP_REGISTER_MODULE(MP_QSTR_camera, mp_module_camera_system, MODULE_CAMERA_ENABLED); to MP_REGISTER_MODULE(MP_QSTR_camera, mp_module_camera_system); at ./src/modcamera.c