arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.73k stars 4.72k forks source link

fix Tensorflow driver for IDF5.x #21348

Closed Staars closed 2 months ago

Staars commented 2 months ago

Description:

Relies on ESP-DSP which is only enabled in our Arduino frameworks for the ESP32 and ESP32-S3. More targets will be added on demand.

Build environment example:

[env:tasmota32s3-mi32]
extends                     = env:tasmota32_base
board                       = esp32s3-qio_qspi
build_flags                 = ${env:tasmota32_base.build_flags}
                              -DFIRMWARE_BLUETOOTH
                              -DUSE_MI_EXT_GUI
                              -DUSE_I2S_ALL
                              -DUSE_BERRY_TF_LITE
                              -DESP_NN
                              -DOTA_URL='""'
lib_extra_dirs              = lib/libesp32, lib/libesp32_div, lib/lib_basic, lib/lib_i2c, lib/lib_div, lib/lib_ssl, lib/lib_audio, lib/libesp32_ml
lib_ignore                  = Micro-RTSP

Little stress test running WiFi, Bluetooth and speech recognition in parallel with still around 115 kB free heap. Definitely not the recommended setup, but the ESP32-S3 can handle this to some extent.

Checklist:

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass