STM32 Lab by RedCan

STM32 Lab by RedCan

Hands-on notes from RedCan engineers on designing and bringing up devices built on STM32 microcontrollers: hardware, firmware, measurements and common mistakes.

STM32 Lab is a series where we write up what has worked on real projects: how we bring up new boards, how we track down faults and how we measure the results. Every article includes a checklist or procedure you can apply to your own design, plus an example from our bench.

The series complements official STMicroelectronics material – wherever a topic deserves more depth, we point to the documentation and the STM32 courses from ST.

Illustration: can fd embedded electronics workbench #07

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 bit segments and the…

Read the article
Illustration: dma cache embedded electronics workbench #06

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 32-byte alignment, non-cacheable MPU…

Read the article
Illustration: bootloader embedded electronics workbench #05

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 (VTOR, MSP, interrupts), an…

Read the article
Illustration: low power embedded electronics workbench #04

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 keeps the clocks running,…

Read the article
Illustration: adc embedded electronics workbench #03

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, computing VDDA from VREFINT,…

Read the article
Illustration: crystal oscillator embedded electronics workbench #02

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 levels, measuring frequency without…

Read the article
Illustration: board bring up embedded electronics workbench #01

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 “No target connected” –…

Read the article

Building a device on STM32?

We can help with microcontroller selection, schematic and PCB, prototype bring-up, firmware and tests.

STM32 device design →
Discuss your STM32 project

STM32 is a registered trademark of STMicroelectronics International N.V. or its affiliates in the EU and/or elsewhere. STM32 Lab by RedCan is an independent series written by RedCan engineers.