I need a MicroPython firmware for the ESP32-S2 AI Thinker CAM

Hello, I need a MicroPython firmware for the ESP32-S2 AI Thinker CAM that has TensorFlow Lite already built in. Can someone guide me on where I can find a pre-built version of this firmware? Any help with resources or instructions on obtaining and flashing this specific firmware would be greatly appreciated. @Middleware & OS
Solution:
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:...
Jump to solution
2 Replies
Solution
RED HAT
RED HAT5mo ago
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.
wafa_ath
wafa_ath5mo ago
Thanks , but how to modify mpconfigport.h to include TensorFlow Lite Micro support?
Want results from more Discord servers?
Add your server