What comes after bare metal STM32?

Nov 23, 2026 Last reply: 1 day ago 4 Replies

First reply

GravelOtter_1977

The honest answer is that collecting more peripheral drivers stops being the game pretty quickly, and you're already at the point where the marginal value of another driver is low. The next step is a real project with a goal, where the goal comes first and the MCU work follows…

Read the full reply

After a few months of working on bare metal STM32 with just the CMSIS headers, the reference manual and the datasheet, I've hit the point where I'm not sure what the next step looks like. I wouldn't call myself a master of it, but I've written my own drivers for the main peripherals, GPIO, UART, SysTick, timers with PWM, input capture, output compare and encoders, plus ADC, SPI, DMA and EXTI. I've even gotten them talking to actual devices and I use the whole setup in my engineering club.



I'm not saying I'm done with bare metal, but I keep wondering where all this acutally leads. I know embedded C++ is on the list, and then an RTOS after that, but I can see myself getting a bit lost in between. Is collecting peripherals and writing drivers for them really the whole game, or is there something I should be aiming at next?



Bootloaders have caught my eye lately, though so far that's mostly reading and research, nothing actually implemented. I'd rather hear from people who've been further down this road than keep guessing, since I figure I'll need to branch out into other parts of embedded sooner or later. So where did your own driver work take you next?


The honest answer is that collecting more peripheral drivers stops being the game pretty quickly, and you're already at the point where the marginal value of another driver is low. The next step is a real project with a goal, where the goal comes first and the MCU work follows from it. That's what teaches you the stuff drivers can't: tradeoffs, architecture, how to structure code when the requirements aren't just 'blink an LED with timer 2'. My own turning point was flipping the question around from 'what feature should I learn next' to 'what do I actually want to exist', and the design decisions that fell out of it taught me more than months of driver work did.

So pick something you genuinely want to build. An application area you care about helps a lot, whether that's wireless communication, motor control, something process-control-ish, whatever grabs you, and then design the whole thing around it. Bootloaders are a great example of why this matters: implemented as a standalone exercise they feel a bit hollow, but inside a real product where you need field updates, they suddenly have a purpose and force you to think about memory layout, flash writes, and recovery paths. And yes, learn an RTOS next. I know you had C++ pencilled in before it, but I'd put the RTOS first, because it makes life so much easier than bare metal once you have real tasks running. Writing your own drivers means you'll understand exactly what the RTOS is doing underneath, which puts you in a better position than most people who jump into FreeRTOS cold.

One question back at you: what would you actually use in your engineering club if someone handed you a finished device for it? That's usually the fastest way to find the project.

This hits home for me because I'm a bit behind you, still fumbling through my first UART driver with just the headers and the reference manual open. The bootloader bit is the part I keep coming back to too, since field updates seem like something a real device would actually need. My question is about the memory layout part the other reply brought up: when you get to writing your own bootloader, do you start by splitting the flash into two regions yourself in the linker, or is that something you figure out only once the project demands it? I genuinely can't picture where that decision happens yet.

For me the RTOS point is the one that landed hardest. I stalled for ages treating FreeRTOS as a big scary jump, and once I finally started it I kept recognising bits my own driver work had already taught me, interrupts and timing especially. So I'd say do the RTOS before C++ too. Also curious how your engineering club uses the setup, since that sounds like it might already point at a project goal.

Update: took a while to sink in but the 'goal first, drivers second' point is fair, and I'm with the person who said do an RTOS before C++, that ordering actually makes sense now. The niche angle got me thinking though. If I pick something like motor control or wireless, how much of my existing driver work carries over versus starting fresh?

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required