Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jul 2, 2023 · 1 comment

Comments

@xhgeya
Copy link

xhgeya commented Jul 2, 2023

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
Copy link

freshev commented Aug 17, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants