RED HAT
RED HAT
DIIDevHeads IoT Integration Server
Created by wafa_ath on 7/2/2024 in #firmware-and-baremetal
I need a MicroPython firmware for the ESP32-S2 AI Thinker CAM
Hi @wafa_ath for your request, you might not find a pre-built firmware directly from the official MicroPython repository. but you can build it yourself. The ESP32-S2 has TensorFlow Lite Micro support, so you can include it in your MicroPython build, by: Install the ESP-IDF (Espressif IoT Development Framework). Install the required tools for building MicroPython (make, gcc, etc.). Clone the MicroPython Repository:
git clone https://github.com/micropython/micropython.git
cd micropython
git submodule update --init --recursive
Build MicroPython for ESP32-S2:
git clone https://github.com/micropython/micropython.git
cd micropython
git submodule update --init --recursive
Build MicroPython for ESP32-S2:
Navigate to the ports/esp32 directory. Edit the mpconfigport.h file to include TensorFlow Lite Micro support. Build the firmware:
make submodules
make -C mpy-cross
make BOARD=GENERIC_S2
make submodules
make -C mpy-cross
make BOARD=GENERIC_S2
Use esptool.py to flash the firmware onto your ESP32-S2
esptool.py --chip esp32s2 --port /dev/ttyUSB0 --baud 460800 write_flash -z 0x1000 build-GENERIC_S2/firmware.bin
esptool.py --chip esp32s2 --port /dev/ttyUSB0 --baud 460800 write_flash -z 0x1000 build-GENERIC_S2/firmware.bin
You can find detailed instructions in the MicroPython documentation and ESP-IDF documentation.
4 replies