Category: STM32 Lab

Illustration: can fd embedded electronics workbench

5 min read

CAN FD on STM32 (FDCAN): bit timing, sample point, transceiver delay compensation and bus-off

How to configure FDCAN on STM32G4, G0, H5 or H7 so CAN FD runs reliably at 2 Mbit/s and above: the peripheral clock, calculating…

Illustration: dma cache embedded electronics workbench

5 min read

DMA and the data cache on STM32H7: why your buffer holds “stale” data and how to fix it

On STM32F7 and H7, enabling the D-cache makes DMA transfers return stale or random data. We explain cache coherency following AN4839, clean/invalidate operations with…

Illustration: bootloader embedded electronics workbench

6 min read

A custom STM32 bootloader and field firmware updates: jumping to the application, CRC and power-loss safety

How to design an STM32 bootloader that does not brick the device when an update fails: flash layout, a correct jump to the application…

Illustration: low power embedded electronics workbench

5 min read

Battery-powered STM32 devices: Stop mode, GPIO configuration and measuring microamps

How to get STM32 current down to the datasheet figure: Sleep, Stop and Standby modes, unused pins in analog mode (AN4899), a debugger that…

Illustration: adc embedded electronics workbench

5 min read

Accurate ADC measurements on STM32: source impedance, sampling time, VREFINT and oversampling

Why the STM32 ADC reads “a bit low”: source impedance versus sampling time (the AN2834 formula with a voltage-divider example), an input capacitor, calibration,…

Illustration: crystal oscillator embedded electronics workbench

6 min read

HSE and LSE crystal oscillators on STM32: load capacitors, gain margin and measurement

How to choose the crystal and load capacitors for STM32 HSE and LSE oscillators following AN2867: the CL formula, critical transconductance gm_crit, LSEDRV drive…

Illustration: board bring up embedded electronics workbench

5 min read

First bring-up of your own STM32 board: from power to SWD debugging

Our checklist for bringing up a new STM32 board: checks before power-up, first power-on with current limiting, the SWD connection and common causes of…