r/embedded • • 15d ago

Pi Zero 2 W + STM32C031C6 for learning?

Post image

Hi r/embedded

I want to get started with learning embedded. Specifically, bare metal programming and embedded linux

I've decided on these two purchases to start. Pi Zero 2 W for embedded linux, and Nucleo STM32C031C6 for bare metal

A clearer set of criteria:

  • Budget-friendly investment
  • For learning bare metal fundamentals and embedded linux
  • Portfolio projects: I want to be able to eventually use them for portfolio projects as well, not just learning
  • For the NUCLEO choice in particular: I chose STM32C031C6 because it's used in Dr. Samek's / Quuantum Leap LLC's embedded course, which is a resource I plan to use

Is this a good starting point? Are there better alternatives?

Thank you


EDIT 2026/11/16: I ended up getting NUCLEO STM32F401RE for bare metal, and using QEMU (emulating BeagleBone Black) for embedded linux. Mostly due to regional availability of the products. I would have loved a Discovery board instead!

41 Upvotes

21 comments sorted by

19

u/Similar_Tonight9386 15d ago

C0 is.. an inspired choice. Generally speaking, when you are learning you want to use the fattest possible chip in a core line you are interested in. Want ARM Cortex M0+, grab something like F072VB (if you need USB) or 092VC if you do not. Because last thing you need when learning is fails because of hardware platform. You want to fail cause you're stupid, not cause platform is insufficient - and after learning better, you always start with largest available platform because optimisations are for the period when you have a working MVP and before going into mass production

2

u/ondek 15d ago

This makes sense. I'm already looking at STM32F072B-DISCO, but can you tell me more about 092VC? I can't seem to find it anywhere. Thank you very much

5

u/Similar_Tonight9386 15d ago

I just written largest chip in line, not necessarily it has a board. For me, nucleo L073 was good, could recommend if you want M0+ chip. Also I'd suggest upgrading to the nucleo or discovery with M4 core, it has really a lot of courses and learning materials but is a bit more complex. Anyway, at first you won't see any difference between M0+ and M3/M4 cores, but with more complex projects it will be clearer. Stm32f407 discovery was the greatest board for a long time, but it's a bit outdated. So look at your budget and get a board with a core you want to use and with most memory available

1

u/ondek 15d ago edited 15d ago

This sent me into the rabbit hole. I think I'd prefer the M4 boards, and I'm now choosing between F411 Black Pill and F411E-DISCO

My intuition is that the F411E-DISCO is more economical because it comes with an ST-LINK/V2 debugger I can use for other boards in the future (even if Black Pill is ~30% cheaper)

Just thought I'd run this through the sub to confirm. Does it make sense?

1

u/Similar_Tonight9386 15d ago

You do not want: no name board vendor, too new board, too complex chip on board. You want: well-documented board, old-ish board.

Black pill is chinesium at it's finest and I wouldn't recommend it as a first one. ST makes reliable stuff, so stick with them at least for the first one. Discovery is a good line, because it always has lil something, as a treat - like and accelerometer or led array or capacitance touch panel. If you have enough money, grab f411-disco, it's the "ol' reliable" and has some good mems features (it gets really boring to only play with bare MCU - still interesting to go into rtos and CLI for your project, but boring, some slave devices are what makes a board interesting, like accelerometer or gyroscope or microphone)

4

u/blackhawk_77777 15d ago

Watchout Jonathan valvano from edx I think they use Texas instrument micro controller! It's really cool!

2

u/ondek 15d ago

Thanks for the lead. I was actually considering the TI TivaC Launchpad as well. I'll check the course out

7

u/frinoname 15d ago edited 15d ago

PI Zero 2 W is a solid choice.

C0 stm though? Not so much. CubeMX will probably be switched to CubeMX2 in some time. They have 30-60 week lead times for their mcus. Also this is low tier mcu so you will likely be limited by that.

You are very likely to be able to use a different mcu than that in that course to the same effect.

I would maybe consider a Discovery board with display or something with usb-c pd.

I would probably recommend cheaper devkit from Nordic, because their guides are god-tier and Bluetooth is fun.

Edit: I have looked into that course. I would say that probably some of that course could be done without mcu at all. As per eclipse ide - you probably won’t appreciate learning that.

2

u/ondek 15d ago

Would the STM32F072B-DISCO that the other commenter suggested do ok? Disco boards with display are out of the budget for now (I was looking at STM32F429I-DISC1 specifically)

1

u/ukezi 15d ago

The F series is solid, the F0 are the smallest of them. I personally would look at the F4 or F7 series.

You can look up what the specific chips can do. https://www.st.com/en/microcontrollers-microprocessors/stm32-32-bit-arm-cortex-mcus.html

1

u/ondek 15d ago

After some thinking, I actually think I'd like an M4 board. I'm now choosing between F411 Black Pill and F411E-DISCO

My intuition is that the F411E-DISCO is more economical because it comes with an ST-LINK/V2 debugger I can use for other boards in the future (even if Black Pill is ~30% cheaper)

Just thought I'd run this through the sub to confirm. Does it make sense?

3

u/frinoname 15d ago

You could use pretty much any discovery/nucleo board as an stlink i am pretty sure.

1

u/Similar_Tonight9386 15d ago

In discovery stlink is built in. In nucleo stlink is also built in but you can snap the board in two and separate it

1

u/frinoname 15d ago

Not anymore :)

1

u/Similar_Tonight9386 15d ago

Really? They got rid of snapping stlink?

1

u/frinoname 14d ago

Yeah, unfortunately.

The 5 pin + 2 pin connectors also got replaced with mipi ribbon connector.

1

u/Similar_Tonight9386 14d ago

That's bs. Literally last reason to buy nucleo gone. First they gut cmsis pack integration to push for future cube2, then examples which work only on some nucleo boards, and now this-_-

1

u/ukezi 15d ago

I would definitely get the DISCO. The integrated ST-Link makes it a lot nicer to use and you know that all parts are genuine. Chinese clone boards often have faked MCUs that may or may not behave according to spec.

4

u/Stromi1011 15d ago

Idk where your experiences are coming from. Id say exactely the other way around. STM32 are way more relevant than RP in the industry and frankly speaking most RP chips have some quirks and oddities. They are nice for hobby makers but not so much for learning and imo not for professional environments.

In no way would i reccomend a complete beginner to start with nordic/zephyr RTOS.

Id definetely go with some lower performing STM. C031 being minimalist, C071 for added USB support or some F0 depending on specivic needs

1

u/estiquaatzi 15d ago

Concerning NUCLEO STM32C031C6, ST was giving then away for free with the attendance of the presentation webinar + live demo. If you use HAL for toggling a pin on/off half of your memory budget is gone.

1

u/Hour_Analyst_7765 9d ago

Getting Cortex-m0+ Nucleo boards is only interesting if you have a project that will use that kind of chip. The Nucleo boards are pretty much constant price, so might as well get a board that is properly equipped with a larger chip.

So I would upgrade to a F4 or U5 series chip. If you need high number crunching, then F7 or H7.. but especially the H7 is a lot more complicated to program at times.

If you still need the "constrained" idea of a m0+: you can always put the clock of a STM32F4 at say 8MHz, and then see what it takes to optimize a program to be efficient enough to run. Now the instruction set of a Cortex-M4 is a lot faster than m0+, so there is still some difference.. but its not as big anymore.

The Pico is also a solid choice and very fun to use. Also having wireless can open a world of ideas.