Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 2.88 KB

FIRMWARE.md

File metadata and controls

62 lines (42 loc) · 2.88 KB

Main page | CamFlasher

Micropython firmware

It is embedded in an improved micropython firmware. This platform starts automatically after writing the firmware. It works perfectly also on esp32 spiram without camera, and also esp32 without spiram but with more limitation.

Build firmware for specific board

The build command must be used to get micropython source, patch source, build and install required tools.

The build.py script work on a Debian 11 distribution, however they ask when running to install certain tools, so you will have to enter the super user password.

Help of this command :

usage: build.py [-h] [-i] [-g] [-d] [-p] [-b] [-a] [-c] [-o OUTPUTDIR] [boards [boards ...]]

positional arguments:

	boards                Select boards to build micropython firmwares, for all firmwares use "*"

optional arguments:

	-h, --help            show this help message and exit
	-i, --install         install the tools required to build the firmware
	-g, --get             get micropython source from git
	-d, --doc             build pycameresp html documentation
	-p, --patch           patch micropython sources with pycameresp patch
	-b, --build           build selected firmwares
	-a, --all             install tools, get source, patch, and build selected firmwares
	-c, --clean           clean micropython sources to remove all patch
	-s, --s3              build Esp32 S3 without problem
	-v BOARDVARIANT, --boardvariant BOARDVARIANT
                    build with board variant option
	-r, --rp2             build raspberry pico RP2 W
	-z, --zippy           zip python modules
	-o OUTPUTDIR, --outputdir OUTPUTDIR                    output directory

The first time use command (get source, install required software and build firmware) :

  • python3 build.py --all "ESP32CAM"

And after juste for rebuild use command :

  • python3 build.py --patch --build "ESP32CAM"

Replace ESP32CAM by your prefered firmware, add double quote if you want to use wildcards for build many firmwares, for example ESP32 GENERIC SPIRAM :

  • python3 build.py --patch --build "GENERIC_SPIRAM"

Or for all ESP32 Camera

  • python3 build.py --patch --build "ESP32CAM" "GENERIC_SPIRAM"

To build ESP32 S3 with SPIRAM:

  • python3 build.py --patch --build --s3 --boardvariant SPIRAM "ESP32_GENERIC_S3"

To build ESP32 S3 without SPIRAM:

  • python3 build.py --patch --build --s3 "ESP32_GENERIC_S3"

To build Freenove CAM S3 :

  • python3 build.py --patch --build --s3 --boardvariant SPIRAM_OCT "FREENOVE_CAM_S3"

To build Pico PI W you must clean all and enter command :

  • python3 build.py --patch --build --rp2 "PICO_W"

I no longer use the same version of micropython between the esp32 and the esp32-S3, the reason is simple, I can't link the firmware, so I stayed on a version 1.20 of micropython, which has the merit of working perfectly.