New to STM32? Start here.
Each guide gets one thing working on the STM32H750B-DK and links every step to the exact page of the manual that explains it. Follow the links, not only the code: the real skill is learning where to look.
Start here: the board and its documents
You know what is on the board, which of the seven PDFs answers which question, and how to go from "I want to use X" to the right register.
Not new to STM32, but new to one peripheral? Open its topic page: what it is, what to read in which order, and the registers to learn first.
I want to…
How the documents fit together
Almost every question goes through these five documents in this order. Every guide follows the same chain, so after a few guides you will do it on your own.
The learning path
- Pins: in and out
Blink an LED
The green user LED LD7 blinks, and you know which document told you each line of the code.
Beginner2Read the user button
Pressing the blue user button B1 toggles the green LED LD7, first by polling the pin and then from an interrupt, and you know why a press must be debounced.
Beginner3- Talking to things
Print to your PC over the virtual COM port
Your program sends text with
Beginner4printf, and it appears in a terminal program on your PC, one line per second.- Pins: in and out
Precise timing and PWM
An LED on Arduino pin D3 fades in and out smoothly, driven by a timer, and you have a 1 ms tick and a timer interrupt you can trust.
Intermediate5Read an analog voltage
You turn a potentiometer on Arduino pin A0 and see a number from 0 to 65535, and the same value in millivolts, printed on your PC every 200 ms.
Intermediate6- Under the hood
Clocks: from 64 MHz to 480 MHz
The CPU runs at 480 MHz from the 25 MHz oscillator through PLL1, with the voltage, flash wait states and bus dividers set in the right order, and you can say where every number came from.
Intermediate7Where your code and data live
You can read the memory map, say which RAM suits which job, explain why a big program has to run from the external Quad-SPI flash, and read a linker script and a cache-coherence problem without panic.
Intermediate8- Screen and touch
Get started with the display
The 4.3" screen is lit and shows your own picture: coloured rectangles and a line drawn from your code into a frame buffer, with one rectangle filled by the DMA2D instead of the CPU.
Advanced9Read the touch screen (I2C)
You read the finger position from the touch controller over I2C4 and draw a dot on the screen where you touch it.
Intermediate10
Bigger parts of the board
No step-by-step guide yet, but here is exactly where to start reading for each one.
Audio: codec, jacks, microphone
A WM8994 codec on SAI2 plays and records through the green/blue jacks and speaker headers. It is configured over the same I2C4 bus as the touch panel. A MEMS microphone uses the PDM input.
USB OTG full-speed (CN13)
The micro-AB connector CN13 can act as USB device or host (e.g. a virtual COM port of your own, a USB stick). LD1 shows VBUS, LD5 overcurrent.
Ethernet (LAN8740 PHY, RJ45)
10/100 Mbit Ethernet through a LAN8740A PHY on the MII interface. Typical stack: LwIP from STM32Cube. Note the solder bridges shared with Quad-SPI.
FDCAN (two CAN ports)
Two FDCAN controllers with transceivers on headers CN10/CN11, for automotive and industrial buses.
eMMC storage (4 GB)
A 4 GB eMMC chip on SDMMC1 for files and big assets. Usually used with the FatFs file system from STM32Cube.
Arduino and STMod+ headers
Expansion headers for shields and modules. Each header pin maps to an MCU pin; check the schematic before using one, since some are shared with on-board parts.
Words you will meet
The block that distributes clocks. Every peripheral is switched off after reset; you must set its enable bit in an RCC register (for GPIO port J that is GPIOJEN in RCC_AHB4ENR) before its registers do anything.
Instead of being a plain GPIO, a pin can be handed to a peripheral (UART, timer, SPI…). Each pin has up to 16 options numbered AF0 to AF15; the datasheet tables say which number gives which signal, and GPIOx_AFRL/AFRH select it.
Something that is ON when its signal is 0 V. The user LEDs on this board have their anode on 3.3 V, so the MCU turns them on by driving the pin low.
InterruptA hardware signal that makes the CPU stop what it is doing, run a handler function, and then continue. It lets you react to a button or a received byte without checking in a loop.
PWM (pulse-width modulation)A fast on/off square wave whose on-time (duty cycle) sets the average power. It dims LEDs, drives servos and sets motor speed.
FramebufferA block of RAM that holds one value per pixel. Change a value and the pixel on screen changes at the next refresh. 480 × 272 pixels in RGB565 take 261,120 bytes.