SPI

STM32 SPI Tutorials

19 Articles
Interface SD card with STM32 via SPI-DMA

Interface SD Card with STM32 via SPI+DMA

Step-by-step guide to interface an SD card with STM32 using SPI and DMA. Covers CubeMX setup, FATFS init, SPI‑DMA config, and read/write file...

Port U8G2 Graphics Library to STM32 – Step‑by‑Step

Port U8G2 Graphics Library to STM32 – Step‑by‑Step

Discover how to port the U8G2 monochrome graphics library to STM32 with hardware SPI, I2C, and software SPI methods. CubeMX setup, callbacks &...

How to Scroll Text on MAX7219 Dot‑Matrix with STM32 (SPI)

How to Scroll Text on MAX7219 Dot‑Matrix with STM32 (SPI)

Step‑by‑step guide to scroll text on a MAX7219 dot‑matrix display with STM32 via SPI. Includes font handling, bit‑endianness and shift functions.

How to Cascade Dot Matrix Displays with STM32

How to Cascade Dot Matrix Displays with STM32 – Step-by-Step SPI Guide

Learn how to cascade multiple MAX7219-based dot matrix displays with STM32 using SPI. Step-by-step wiring, cascading code, and column-to-row data conversion included.

Interface LED Dot Matrix with STM32 via SPI | PART1

Interface LED Dot Matrix with STM32 via SPI | PART1

Learn to interface an 8×8 LED dot matrix with STM32 using SPI and MAX7219. Covers initialization, wiring (PA5/SCK, PA7/MOSI, PA4/CS), and code walkthrough.

W25Q Flash Series || Part 9 || SPI Flash Loader

This tutorial cover how to create and use the external loader for the W25Q flash memory using the SPI peripheral. Using cube programmer...

W25Q Flash Series || Part 8 || QUADSPI External Loader

This tutorial will cover how to create an external loader for the W25Q Flash using the QSPI. We will also see how to...

W25Q Flash Series || Part 7 || QUADSPI Write, Read, Memory Mapped mode

This tutorial covers how to use the W25Q Flash memory in QuadSPI mode. We will write, read, erase and use the flash in...

WS2812 LEDs using SPI

This tutorial covers how to interface WS2812 addressable LEDs with STM32 using the SPI. We use the MOSI pin to send the data...