2025-01-17 08:50 PM
I am studying a project that requires a very small microcontroller. It will only drive analog and digital ports, but we need the I2C protocol and maybe even CAN. I was advised to use the STM8, but I am not comfortable with this choice. And I wanted to adopt something that was Cortex-M0.
What would be better? The STM8 or an STM32F0 or even another Cortex-M+. What is the future of the STM8 family?
Would it be advisable to mix architectures in a new project?
Solved! Go to Solution.
2025-01-18 02:50 AM
STM32C0 is now the recent low budget/low feature line to concure against 8 bit. My opinion: If you intende to do rally high numbers, maye STM8 will be cheaper. But on 32 bit , programming is easier and so the startup/. development cost . You must know your boundary conditions...
2025-01-18 02:50 AM
STM32C0 is now the recent low budget/low feature line to concure against 8 bit. My opinion: If you intende to do rally high numbers, maye STM8 will be cheaper. But on 32 bit , programming is easier and so the startup/. development cost . You must know your boundary conditions...
2025-01-18 11:58 AM
I didn't understand what "rally high numbers" would be
2025-01-18 12:42 PM
Really High, probably 100K units or 1M units, sort of levels where you can get aggressive pricing.
ST has been somewhat mixed about long term of STM8, as best I can tell most of the chip and tools teams have been redeployed. Clearly not an accendant technology choice.
The 32-bit CM0(+) have an easier debug model, and are available in very small parts. At 16KB FLASH you're perhaps struggling to do much if the float libraries are needed.
KEIL/STM have a free version of the MDK tools for CM0(+) parts
2025-01-18 03:19 PM
I don't have the exact quantity, but I don't see a value above 1000 units, it's a very limited and highly competitive market.
I'm studying development with CubeIDE, I was already familiar with Eclipse, and I have no reason to change IDEs. I currently also use VSCode for RP2040/2350 and ESP32
2025-01-19 12:41 AM - edited 2025-01-19 12:49 AM
If Your only priority is 'very small microcontroller', STM32F0 has smaller package WLCSP12 (1.70 × 1.42 mm) vs STM8' WFQFPN20 3x3mm
and the same 8- & 20-pins packages
But there are other priorities: are You ready to use so small but not so convenient for prototyping WLCSP package, is it available, how much it costs, should Your device decrease power consumption (if it is battery powered) and so on.
Sometimes even the projects fully in assembler are required (for example, for lowest power consumption or strictly defined time intervals with low jitter). For such specific tasks other types of uC is more convenient, for example, AVR.
To have skill in different series, including different uC producers, and different IDEs only will be Your advantage.
2025-01-19 05:34 AM
I thought about the atmega line (AVR) but I also wondered if it was becoming obsolete, but it is still an excellent µC.
But I am leaning towards something like Cortex-M0, especially if I don't need another IDE for development and maintenance. I am very comfortable with CubeIDE (Eclipse)
2025-01-19 06:51 AM
Where are now MCS-51 uCs or AVR AT90S series?
Compare the price ATmega8 (AVR ATmega series) vs ATmega808 (relatively new megaAVR 0-series. better parameters, 1-wire programmer - very simple if DIY): $1.90 vs $0.80. It seems, microchip tries to replace its own, but old ATmega series.
All uC series stay old fast enough.
The same tendency may be expected concerning STM8 & Cortex-M0 and even IDE.
Well known problem when a prgrammer stays a hostage of the favorite uC series.
The cure: ability to master new/other uC series and IDEs fast.
2025-01-19 07:20 AM
I thought that the ATxmega, from the ATmel era, would be the replacement for the old atmega, but apparently the stm32f0 line will be the best choice.
2025-01-19 08:30 AM
Why do you prefer F0 and not C0?