Skip to main content
Associate
Nov 24, 2026 19:26 UTC
Question

How should I get started with STM32?

I'd like to ask people familiar with STM32 microcontrollers: what's the best way to get started with them?
I have an STM32 board based on the STM32F405RGT6.
What resources, books, or learning materials would you recommend for learning STM32, and how did you go about learning them yourself?

16 replies

TDK
Nov 24, 2026 22:54 UTC

Get a nucleo, board, open up example projects in STM32CubeMX that do simple things like blink an LED or send strings to the VCP. Debut the code, step through, examine registers and variables, set breakpoints, understand basic debugging capabilities. Once you have understanding, change the project to do something slightly different. Once you are comfortable, create a simple project that aligns with your interests. Send a string in response to a button press.

"If you feel a post has answered your question, please click ""Accept as Solution""."
ST Technical Moderator
Nov 25, 2026 09:32 UTC

Hello ​@Vinar20122  and welcome to the Community,

In addition to what ​@TDK mentioned, I recommend the getting started ST wiki pages: 

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Andrew Neil
Super User
Nov 25, 2026 10:27 UTC

Welcome to the forum.

Getting started with STM32 isn’t really any different from any other microcontroller, so do you have any experience with any other microcontroller(s) ?

See:

 

As ​@TDK said, a Nucleo board is probably the best place to start.

From the above-mentioned thread, see this post for getting started with some basic projects & concepts.

 

Avoid the so-called Blue/Black pill boards, as these are not supported by ST, and might not have a genuine STM32 fitted. They also don’t come with any STLink.

Also avoid fake/clone STLinks:

 

I have an STM32 board based on the STM32F405RGT6.

What board, exactly?

Please give a link.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate
Nov 25, 2026 19:04 UTC

I have some experience working with the ATmega328 using high level programming.

Getting started with STM32 is very different... especially from an architectural perspective. To be honest, I never really studied the internal architecture of Arduino because I didn’t need to. However, with STM32, I feel that understanding the underlying architecture is essential.

In almost every tutorial I've watched, nobody really explains what’s going on. Project configuration looks something like: "Well, set this frequency here, change this setting, do that, and now write some code to turn on an LED."

But I want to understand the architecture itself, so I can actually know how STM32 works rather than just follow instructions.

So far, I haven't been able to find a single resource that explains all of this properly.

AScha.3
Super User
Nov 25, 2026 19:23 UTC

So pick a cpu you would like to use and read the ds and then the rm.

Then you know about the peripherals on this chip or soc.

If you want to know more about the core, look at arm , for the reference manual for this core.

And the app notes and papers at STM .

All together, depending on chip, maybe 2000 ….8000 pages.

Or begin with a Nucleo board, try to do some examples and read and learn, what you need to go on.

ymmv.

If you feel a post has answered your question, please click on " Best Answer ".
TDK
Nov 25, 2026 19:44 UTC

So you want to understand the architecture but you don’t want to read technical documentation. Hmm, that is a tricky set of requirements.

they assume that you already understand the fundamentals of microcontroller architecture.

What does this even mean? What are the fundamentals of microcontroller architecture, or what do feel you need to understand that isn’t being explained in the RM?

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate
Nov 25, 2026 20:09 UTC

I think I was VERY wrong about this. I thought the RM didn`t explain anything and was just documentation describing how things work in complicated technical language (for engineers or people who already have a lot of knowledge about the subject)

Pavel A.
Nov 25, 2026 20:25 UTC

>  I thought the RM didn`t explain anything and was just documentation

The RM indeed is just documentation for nerds. If you want explanation “how things work”, get the PM (Programming manual) and generic ARM Cortex-M books (Joseph Yiu) . Again, just ask any decent AI. They know about Cortex-M very well and explain in great details.

The yellow button “Ask AI” →  will search all the ST manuals and examples for you.

 

Pavel A.
Nov 25, 2026 19:50 UTC

> So you want to understand the architecture but you don’t want to read technical documentation. Hmm, that is a tricky set of requirements.

Not at all, anymore. This is the vibe coding. Learning and understanding is no longer needed to get to the result, just wish + some money optionally.

 

Associate
Nov 25, 2026 20:25 UTC

Vibe coding... nah, I'm not that stup]d anymore...