ForestHub Logo ForestHub Logo ForestHub

STMicroelectronics

STM32F4 Edge AI Guides

192 KB SRAM with FPU and DSP instructions supports small ML models. CMSIS-NN optimized for Cortex-M4.

Hardware Specs

Processor ARM Cortex-M4F @ 168 MHz
Cores 1
Clock 168 MHz
SRAM 192 KB
Flash 1 MB
FPU single
Connectivity USB OTG FS
Key Features Single-precision FPU, DSP instructions, Widely available ecosystem
Price $3–$10 (chip), $10–$30 (dev board)

Dev Boards in This Family

100 edge-AI-capable STM32F4 development boards with specs and compatibility details.

ST 32F469IDISCOVERY

ST

384 KB RAM · 180 MHz

ST 32F413HDISCOVERY

ST

320 KB RAM · 100 MHz

STM32F413CG (320k RAM. 1024k Flash)

Generic

320 KB RAM · 100 MHz

STM32F413CH (320k RAM. 1536k Flash)

Generic

320 KB RAM · 100 MHz

STM32F413RG (320k RAM. 1024k Flash)

Generic

320 KB RAM · 100 MHz

STM32F413RH (320k RAM. 1536k Flash)

Generic

320 KB RAM · 100 MHz

STM32F423CH (320k RAM. 1536k Flash)

Generic

320 KB RAM · 100 MHz

STM32F423RH (320k RAM. 1536k Flash)

Generic

320 KB RAM · 100 MHz

ST Nucleo F413ZH

ST

320 KB RAM · 100 MHz

Armstrap Eagle 2048

Armstrap

256 KB RAM · 168 MHz

96Boards Neonkey

96Boards

256 KB RAM · 168 MHz

96Boards Argonkey (STEVAL-MKI187V1)

96Boards

256 KB RAM · 100 MHz

32F412GDISCOVERY ST 32F429IDISCOVERY STM32F412CE (256k RAM. 512k Flash) STM32F412CG (256k RAM. 1024k Flash) STM32F412RE (256k RAM. 512k Flash) STM32F412RG (256k RAM. 1024k Flash) Mbed Connect Cloud u-blox ODIN-W2 Microsoft Azure IoT Development Kit (MXChip AZ3166) ST Nucleo F412ZG PYBStick 26 Pro u-blox C030-N211 IoT Starter Kit u-blox C030-R410M IoT u-blox C030-U201 IoT Starter Kit u-blox EVK-ODIN-W2 Seeed Wio 3G Armstrap Eagle 1024 ST Nucleo F429ZI ST Nucleo F439ZI Seeed Arch Max 1Bitsy Adafruit Feather STM32F405 3D Printer Controller Armstrap Eagle 512 96Boards B96B-F446VE 96Boards Neonkey Black STM32F407VE Black STM32F407VG Black STM32F407ZE Black STM32F407ZG WeAct Studio BlackPill V2.0 (STM32F411CE) Blue STM32F407VE Mini ST STM32F4DISCOVERY ST 32F411EDISCOVERY F407VG Espotel LoRa Module FK407M1 FYSETC S6 STM32F405RG (128k RAM. 1024k Flash) STM32F407IG (192k RAM. 1024k Flash) STM32F407VE (192k RAM. 512k Flash) STM32F407VG (128k RAM. 1024k Flash) STM32F411CC (128k RAM. 256k Flash) STM32F411CE (128k RAM. 512k Flash) STM32F411RC (128k RAM. 256k Flash) STM32F411RE (128k RAM. 512k Flash) STM32F415RG (128k RAM. 1024k Flash) STM32F417VE (128k RAM. 512k Flash) STM32F417VG (128k RAM. 1024k Flash) STM32F446RC (128k RAM. 256k Flash) STM32F446RE (128k RAM. 512k Flash) MTS Dragonfly MultiTech mDot MultiTech mDot F411 N2+ ST Nucleo F411RE ST Nucleo F446RE ST Nucleo F446ZE STM32-E407 STM32-H407 Olimex STM32-P405 PrntrBoard V2 PYBStick Standard 26 3D Printer control board RYMCU STM32F407VE (192k RAM. 512k Flash) sakura.io Evaluation Board SparkFun MicroMod STM32F405 STM32F4Stamp F405 ThunderPack v1.1+ VAkE v1.0 VCCGND F407ZGT6 Mini WeAct Studio BlackPill V3.0 (STM32F401CE) RushUp Cloud-JAM STM32F401CD (96k RAM. 384k Flash) STM32F401CE (96k RAM. 512k Flash) STM32F401RD (96k RAM. 384k Flash) STM32F401RE (96k RAM. 512k Flash) ST Nucleo F401RE PYBStick Lite 26 3DP001V1 Evaluation board for 3D printer WeAct Studio BlackPill V2.0 (STM32F401CC) Core board F401RCT6 ST 32F401CDISCOVERY STM32F401CB (64k RAM. 128k Flash) STM32F401CC (64k RAM. 256k Flash) STM32F401RB (64k RAM. 128k Flash) STM32F401RC (64k RAM. 256k Flash) STEVAL-FCU001V1 Flight controller unit evaluation board

Hardware Guides

STM32F4 Anomaly Detection with Edge Impulse

Excellent

For anomaly detection, the STM32F4 with Edge Impulse scores Excellent. Its 192 KB internal SRAM (6.0x the required 32 KB) and 168 MHz clock …

STM32F4 Anomaly Detection with TFLite Micro

Good

The STM32F4 runs autoencoder-based anomaly detection with TFLite Micro using under 20 KB of its 192 KB SRAM. The Cortex-M4F's DSP instructio…

STM32F4 Fall Detection with Edge Impulse

Excellent

The STM32F4 is an excellent match for fall detection with Edge Impulse. 192 KB SRAM delivers 3.0x the 64 KB minimum while 168 MHz processes …

STM32F4 Fall Detection with TFLite Micro

Excellent

STMicroelectronics's STM32F4 excels at fall detection via TFLite Micro. The 1-core cortex-m4f at 168 MHz with 192 KB SRAM handles 20 KB quan…

STM32F4 Gesture Recognition with Edge Impulse

Good

The STM32F4 classifies IMU gestures with Edge Impulse's optimized inference pipeline. The Cortex-M4F's DSP instructions handle spectral feat…

STM32F4 Gesture Recognition with TFLite Micro

Good

Running gesture recognition on the STM32F4 with TFLite Micro is practical. 192 KB SRAM meets the 64 KB minimum with 3.0x headroom. The 168 M…

STM32F4 Image Classification with Edge Impulse

Good

The STM32F4 handles image classification effectively with Edge Impulse. 192 KB SRAM at 168 MHz provides 1.5x headroom over the 128 KB requir…

STM32F4 Image Classification with TFLite Micro

Good

The STM32F4 handles image classification effectively with TFLite Micro. 192 KB SRAM at 168 MHz provides 1.5x headroom over the 128 KB requir…

STM32F4 Predictive Maintenance with Edge Impulse

Good

Running predictive maintenance on the STM32F4 with Edge Impulse is practical. 192 KB SRAM meets the 64 KB minimum with 3.0x headroom. The 16…

STM32F4 Predictive Maintenance with TFLite Micro

Good

The STM32F4 is a widely used Cortex-M4 for vibration-based predictive maintenance. With 192 KB SRAM, 168 MHz clock, and DSP instructions, it…

STM32F4 Sound Classification with Edge Impulse

Excellent

The STM32F4 is an excellent match for sound classification with Edge Impulse. 192 KB SRAM delivers 3.0x the 64 KB minimum while 168 MHz proc…

STM32F4 Sound Classification with TFLite Micro

Excellent

STMicroelectronics's STM32F4 excels at sound classification via TFLite Micro. The 1-core cortex-m4f at 168 MHz with 192 KB SRAM handles 40 K…

STM32F4 Voice Recognition with Edge Impulse

Good

STMicroelectronics's STM32F4 is a solid choice for voice recognition using Edge Impulse. The cortex-m4f core at 168 MHz with 192 KB SRAM acc…

STM32F4 Voice Recognition with TFLite Micro

Good

The STM32F4 handles voice recognition effectively with TFLite Micro. 192 KB SRAM at 168 MHz provides 1.5x headroom over the 128 KB requireme…

STM32F4 Wildlife Monitoring with Edge Impulse

Good

The STM32F4 handles wildlife monitoring effectively with Edge Impulse. 192 KB SRAM at 168 MHz provides 1.5x headroom over the 128 KB require…

STM32F4 Wildlife Monitoring with TFLite Micro

Good

Running wildlife monitoring on the STM32F4 with TFLite Micro is practical. 192 KB SRAM meets the 128 KB minimum with 1.5x headroom. The 168 …

Related Guides

Best Microcontroller for Machine Learning

Compare ESP32-S3, STM32H7, ESP32-C3, and Arduino Nano 33 BLE for on-device ML. Specs, benchmarks, and use-case recommendations.

AI Agents for Embedded Systems

What AI agents mean for embedded systems: the on-device sense-inference-act loop, plus graph orchestration on a Linux edge gateway with ForestHub edge-agents.

How to Deploy AI Models to Microcontrollers

Step-by-step guide to deploying machine learning models on ESP32, STM32, and Arduino MCUs using TensorFlow Lite Micro and Edge Impulse.

Edge AI Agents on Microcontrollers

How edge AI agents run on microcontrollers: the sense-reason-act loop on-device, architecture, memory constraints on ESP32 and STM32, and when to use them.

Edge AI for Manufacturing

How manufacturers deploy edge AI for quality control, predictive maintenance, and energy monitoring. MCU-based solutions without cloud dependency.

ESP32 vs STM32 for AI Applications

Compare ESP32 and STM32 for edge AI. Architecture, ML performance, tooling, connectivity, and cost analysis for embedded ML projects.

EU AI Act & Cyber Resilience Act for Edge AI

What the EU AI Act and Cyber Resilience Act mean for industrial edge AI agents, and how an auditable, deterministic architecture supports compliance.

How to Build Agentic Edge AI

A practical guide to building agentic edge AI: sensors, on-device inference, decision and state logic, actuation, and orchestration on ESP32 and STM32.

Predictive Maintenance on a Linux Edge Gateway

How to scale predictive maintenance from a single vibration node to a plant-wide system on a Linux edge gateway over MQTT, Modbus, and OPC-UA.

Predictive Maintenance with Edge AI

Deploy edge AI for predictive maintenance. Vibration analysis, anomaly detection, and ROI calculation for MCU-based monitoring on factory equipment.

TinyML Getting Started Guide

Learn TinyML from scratch. Set up your first machine learning project on a microcontroller with ESP32, Arduino, or STM32 using TFLite Micro or Edge Impulse.

What Is Edge AI Orchestration?

Edge AI orchestration runs models, sensors, and actions as a graph on a Linux edge gateway, not monolithic firmware. Built with ForestHub edge-agents.

Other Microcontrollers

EFR32MG

Silicon Labs

256 KB RAM · 40 MHz

ESP32

Espressif

520 KB RAM · 240 MHz

ESP32-C3

Espressif

400 KB RAM · 160 MHz

ESP32-C6

Espressif

512 KB RAM · 160 MHz

ESP32-S2

Espressif

320 KB RAM · 240 MHz

ESP32-S3

Espressif

512 KB RAM · 240 MHz

GAP8

GreenWaves Technologies

512 KB RAM · 250 MHz

i.MX RT1052

NXP

512 KB RAM · 600 MHz

i.MX RT1062

NXP

1024 KB RAM · 600 MHz

i.MX RT1064

NXP

1024 KB RAM · 600 MHz

LPC55xx

NXP

320 KB RAM · 150 MHz

nRF52832

Nordic Semiconductor

64 KB RAM · 64 MHz

nRF52833

Nordic Semiconductor

128 KB RAM · 64 MHz

nRF52840

Nordic Semiconductor

256 KB RAM · 64 MHz

RA6M5

Renesas

512 KB RAM · 200 MHz

SAMD51

Microchip

256 KB RAM · 120 MHz

SAME51

Microchip

256 KB RAM · 120 MHz

STM32F3

STMicroelectronics

80 KB RAM · 72 MHz

STM32F7

STMicroelectronics

512 KB RAM · 216 MHz

STM32G4

STMicroelectronics

128 KB RAM · 170 MHz

STM32H5

STMicroelectronics

640 KB RAM · 250 MHz

STM32H7

STMicroelectronics

1024 KB RAM · 480 MHz

STM32L4

STMicroelectronics

128 KB RAM · 80 MHz

STM32L5

STMicroelectronics

256 KB RAM · 110 MHz

STM32U5

STMicroelectronics

786 KB RAM · 160 MHz

STM32WB

STMicroelectronics

256 KB RAM · 64 MHz

Orchestrate STM32F4 Edge AI with ForestHub

The STM32F4 runs inference on-device. ForestHub on your Linux edge gateway ingests its results over MQTT, orchestrates the sense-reason-act loop as a deterministic, auditable graph, and acts on the line.

Get Started Free