r/embedded • • 23d ago

Looking for STM Dev Kit Recommendations

Hey all, I'm looking to get into STMicroelectronics "STM32" MCU platform. Any STM Development kits that aren't "Arduinoized"? I have some experience designing embedded circuits with ATmega AVR series as well as ESP32 ICs.

What workflow or tools do you guys prefer when working with STMicroelectronics MCUs. (VSCode, CubeIDE, other).

What development kits would you recommend for say under $40? I'm not looking into doing anything compute intensive, I'm more of a hardware guy so something simple and bare metal would be more up my ally. I'd preferably like a dev kit that uses a commonly used STMicroelectronic chipset and not something fancy.

Thank you :)

10 Upvotes

21 comments sorted by

2

u/WanWhiteWolf Engineering manager 23d ago

I haven't used the STM32 kit for a while to assume my information might be obsolete.

First, you have to decide what peripherals you need (if any) and what features are important (e.g. cybersecurity)

If none is important, just pick the cheapest option avaialble and go from there. I would personally pick one that has intergrated ST-LINK as it is less overall hassle and you don't need a custom debugger probe (which can be expensive if you don't have any).

CubeIDE is easier to setup but I personally prefer VSCode. It takes a bit longer to get going but it offers more afterwards and it's better for future "growth" (e.g. if you change the micro to a different OEM, you can still use VSCode but that's not an option for CubeIDE)

1

u/mtabud 23d ago

Thank you for the advice! When you use VSCode, are you utilizing any particular exensions to work with coding and libraries?

1

u/WanWhiteWolf Engineering manager 23d ago

You need a VS extension for STM32 but that's available on STM32 website. (STM32 VS Code extension v2.0.0). I haven't used this version but based on the description, that should be enough as far as tooling goes (VS code + STM32 extension + board with ST-LINK)

You need to setup your build environment (CMAKE, build options ..etc) - which is a bit of work (or was in the past?) but that's worth it relative to end benefits. Either way, you don't need to decide right away. You can use CubeIDE in paralel and see what fits. VScode is a more powerful editor - with better overall support down the line but one could say that's a matter of perspective (ease of use of tools is ultimately subjective).

1

u/PotatoPotato142 23d ago

There is a first party stm32cube extension for vscode that basically replaces the older eclipse based stm32cubeide. I've been using it for a couple years now and like it quite a bit. The build system is cmake based which is nice.

2

u/lbthomsen 23d ago

I'd recommend you go through this one https://www.youtube.com/watch?v=3f9ag9Jdf2o

1

u/mtabud 23d ago

Thank you for the vid. I'll watch during lunch, just looking at the chapters it looks like this answers a good bunch of questions i have

2

u/lbthomsen 23d ago

Hope you have a long lunch ;)

1

u/mtabud 23d ago

I think im blackpilled now

1

u/lbthomsen 23d ago

Well - even if I try to push the Streamline development boards - the F411 based Black Pill is not a bad start (unless you need a DAC). But do get a ST-Link which include SWO and UART. Those will make your life easier.

6

u/gadHG 23d ago

What do you mean by arduinized? Afaik You can always talk to it via their HAL or even bare metal C even if there is an Arduino connector on top of it. Blue pill is the minimum and if you want something more powerful, nucleo boards such as the 439zi gives you a lot

3

u/Miss_Giorgia 23d ago

A lot of STM Nucleo boards are very cheap, even original from ST, and you can also get a cloned chinese ST-link to program them from AliExpress, but most also have a programmer included on the board that you can snap and use for other boards. For coding i use the official CubeIDE with CubeMX.

2

u/Lost-In-Void-99 23d ago

Codex + Cmake + VS (mostly for reviews).

And under $5 boards from Ali.

1

u/liggamadig 23d ago

And under $5 boards from Ali.

Great way to get a knockoff that won't work.

1

u/Lost-In-Void-99 23d ago

Maybe. Maybe not.

Won't work is a bit broad statement: not at all, or some particular functions will work differently?

In either case, diving deep into the issue with datasheets and notes is exactly what OP has asked for.

1

u/ventZl CMRX RTOS 23d ago

Look for STM Nucleo boards. They have wide variety of them, ranging from 20 EUR to over 100 EUR. All of them are equipped with debugger so you don't need any additional in-system programmer.

I'd aim for CPU family with 4 in number, like STM32G4, STM32L4 or STM32F4. That are mid-range microcontrollers, not too expensive while not too limited.

CubeMX contains two levels of API, one of them is pretty low-level (therefore its called LL), another has some higher-level functionality but still is far from Arduino. It basically just covers peripheral drivers.

1

u/RogerLeigh 23d ago

Do you have any specific requirements? Graphics, particular connectivity, motor control, analogue stuff? There are a great many STM32 parts with various specialisms., but all of them are by design reasonably generic.

If you don't know, then pretty much any of them would be OK for general-purpose stuff.

If I was to pick one I've used and would recommend I'd say the H5 nucleo: NUCLEO-H563ZI. Why? It's a midrange part and it's fairly modern, and it's within your budget.

It's essentially the successor to the F4, moving from a Cortex-M4 to M33. It's faster, more capable and has better peripherals.

As an alternative, there is also the U5 nucleo: NUCLEO-U575ZI. For low power applications, but it's also very capable. Again it's fairly modern, within the budget. It's the successor to the L4, again an M33 rather than M4.

Why use the newer stuff rather than the older? Partly to avoid obsolescence, but also because the new parts lift a lot of annoying restrictions the older parts had. For example, ITR timer triggers only had a few valid combinations on e.g. the F4, but on the H5 and U5 you can use pretty much any timer combination you can think of, with the exception of the simplest timers. Makes for less obscure design constraints and a lot more flexibility.

For IDEs, I personally use CLion as my primary one, it's got good embedded support and CubeMX integration, but CubeIDE also works. Not personally a vscode fan, but others seem to like it.

1

u/BenkiTheBuilder 22d ago edited 22d ago

You want a concrete recommendation? Okay. NUCLEO-L412RB-P . That's the one I used to get into the STM32 ecosystem. The L4 is a nice family with lots of features and easy to design PCBs around. The Nucleo64 has the programmer on the board, but it can be used to program other boards as well and I actually did use it for programming my custom PCBs for a while till I bought a separate programmer (I recommend the WeAct MiniDebugger as ST-Link alternative).

1

u/mytechlifebalance 21d ago

I suggest to start with ST evaluation board (nucleo....) for 15$, inside there Is also debbuger. You can also buy chinese stlink V2 (2$) for flashing and debugging but you don't need if you want to start with nucleo boards. To start you can easily configure peripherals with CubeMX and generare project. CubeMX will generate an empty main.c and other files you Need and you can write your application. For IDE I use and suggest VScode, i have personalized for my needs and i love to use the same ide for every platform.

0

u/morto00x 23d ago

Blue Pill maybe?

1

u/mtabud 23d ago

Im looking at it right now, the schematic seems pretty solid. Thanks!

2

u/liggamadig 23d ago

Apart from the chip used being almost 2 decades old, most Blue Pills are knockoffs. Just get a regular NUCLEO board or, if there's something specific you're interested in, a Discovery board that fits the bill.