Memory and storage overview
Memory and storage overview for TuyaOpen: MCU SRAM, PSRAM, and NOR flash versus Linux DDR and block storage, with TAL patterns and heap/flash guides.
Heap allocation and PSRAM
Heap allocation and PSRAM in TuyaOpen: tal_malloc/tal_free from tal_memory.h and tal_psram_* allocators enabled by ENABLE_EXT_RAM on ESP32 SPIRAM.
Flash, partitions, and capacity
Flash and partitions on TuyaOpen MCU targets: firmware, OTA, authorization, and KV/LittleFS share external NOR flash via tkl_flash_* and Kconfig.