79 points · by dverlaeckt80 · 2w ago · 50 comments
STM32MP257 application processors (STM32 MPUs) are based on a dual Arm® Cortex®-A35 cores running at up to 1.5 GHz and Cortex®-M33 cores running at 400 MHz.
Why do they put a full-desktop-capable A35 processor in the sme product line as the M0 microcontrollers? I presume they're trying to milk value out of the name recognition but they're just diluting the name.When it came out we used STM32MP257 to demo a quadrature encoder debugger/logger (for internal use, not a product) since the IO supports easy interfacing of encoders. The micro's peripherals (SPI, I2C, GPIO etc.) are easy to program at the register level and you can run a simple mainloop+interrupts thing on the micro, then run Linux for your UI, networking, etc.
The fact that there's not much activity around these kinds of platforms (CPU+micro or CPU+FPGA) suggests it's too hard to combine the two in a way that makes sense for enough people, easier to just use standard components and have them side-by-side on the PCB.
It is nice to have them on the same die, though, for people like myself who like to work on both ends but don't know how to make their own PCBs.
Engineers actually use these in real products and embedded systems.
The combination of Linux and microcontrollers isn’t new. It’s a very valuable and common structure.
The comments here trying to dismiss it or call it uncommon are bizarre.
The only difference is that a lot of them are on separate chips.
Probably programming a computer is too advanced for most to attempt, so that doesn't seem like a legitimate criticism.
Even if it supports the 64-bit ARM ISA, it is a very small and slow core, much slower than even the little Cortex-A53 and Cortex-A55 cores, which were used in the early Raspberry Pi versions.
As mentioned in TFA, at the same clock frequency Cortex-A35 is much slower than the fastest microcontroller cores, i.e. Cortex-M85 and Cortex-M7.
The only advantage of Cortex-A35 is that it has a deeper pipeline, which increases the latency of many things, like interrupt handling, but it allows a higher clock frequency, thus a greater throughput.
Having a MMU, it is suitable for Linux, but using it for a desktop would be ridiculous, as even the slowest Atom CPU from 17 years ago was much faster.
Anything with Cortex-A35/Cortex-A32/Cortex-A34 may be useful only for some embedded devices which run Linux. They are much slower than even the chips with Cortex-A53 that were used in the cheapest smartphones from more than a decade ago.
In fact anything with Cortex-A35/Cortex-A32/Cortex-A34 is too slow to be useful for anything, because much faster chips with Cortex-A55 are available at much lower prices from vendors like Rockchip and several others. Even some much better SBCs with Intel Atom CPUs are available for a price 4 times lower.
A board with Cortex-A55, PCIe, USB 3 and with everything else that the author of the TFA desired can be bought for a 10 times lower price than that ST development system.
I am using a lot of ST development boards, but they are various versions of the cheap Nucleo boards, which have an excellent price/performance ratio.
Their more expensive boards and more expensive microcontrollers that can run Linux are not competitive in price and features with the boards using cheaper N-series Intel CPUs or with the boards using various Cortex-A55, Cortex-A520, Cortex-A76, Cortex-A78 or Cortex-A720 that are available from Chinese vendors.
The fusion of the two is very valuable if you have applications that require real time work.
> I presume they're trying to milk value out of the name recognition but they're just diluting the name.
No, absolutely not. This is a very valuable structure for embedded work and it’s very common. I don’t know why you’d jump to such a cynical conclusion.
But once TI provided that compiler it was easier for people to have the two smaller cores handle peripherals in real time, while the main processor was busy. Those kinds of heterogenous chips are super interesting if you're into bare metal programming.
That was a gut feel of mine 30 years ago. And it wasn't as bad then.
Newer gut feel but I remember a processor designer saying the same thing a few years ago. Modern systems the processor very often is doing basically jack all nothing 95% of the time. They aren't very power efficient in that mode. Where Cortex-M processors are.
A soft poke. An Arm Cortex-M4 is as powerful as an 486 of yore that was what people were running windows 3.1 on and playing DOOM.
You keep the linux on the beafy cheip, and hand over the real-time stuff to the M0.
Must be an embedded thing.
I'm worried they dug too deep a trench with the 32. Like how do much from Espressif is an ESP32 now despite them ranging from slower single core to faster dual core, now even with mmu, some with Wi-Fi some not...
What is in a name?
STM8 is still a thing and they were popular cheap embedded boards before ESP32 took over. They were ok as a cheap alternative to Arduino-compatible AVR boards. I have a few of the boards around. They were around $1 each on Aliexpress and have 8K of flash and 1K of ram, which is enough to run interactive Forth, and there's an SDCC compiler target for them.
Most would start with the significantly cheaper Discovery Kit version.
With ST, the developer kit is usually only needed if you need every pin and function exposed because you’re developing your own board.
> The Pocketbeagle 2 looks interesting to me.
If only it had 2GB+ RAM. Since it has 4 cores, even more RAM would be better.
And 1Gbit Ethernet is what I'm missing.
But also: Cortex A35 is from 2015! And it's still just a trickle of these small application processor cores. Having a MMU enables so much more. Look at what Baochip and Xous are doing, with small cores but with MMU, for radically better interesting OS / systems architectures.
It just feels so cursed, is so beyond my surprise here well past half way through 202X that so many cores from early 201X are still not just alive but utterly dominant. Something has gone super super super wrong in the House of ARM!
The successor of Cortex-A7 was Cortex-A53, which was followed by Cortex-A55, then by Cortex-A510, and so on, until the current Arm C1-Nano.
The line of Cortex-A5 and Cortex-A35, which includes Cortex-A32 and Cortex-A34, can be considered dead, because using so slow CPUs instead of the best Cortex-M or Cortex-R cores (like Cortex-M85 and Cortex-R82) does not make sense.
The pipeline from new ARM cores to shipping silicon is surprisingly long. Cortex-M85 was announced in 2022, and there's still almost nothing on the market that implements it.
So if you are willing to pay a high price, which might not be worthwhile, it is not difficult to find MCUs or development systems with Cortex-M85.
I have to wonder if locking up the docs is some kind of export control or government contract requirement.