Skip to main content
SCook.1
Associate III
May 21, 2022
Question

What would be a modern equivalent to an STM32F103, preferably in a 48 pin package, and which wouldn't require too many alterations to existing code and PCB?

  • May 21, 2022
  • 4 replies
  • 2807 views

I've spent the last 2 years developing a product using an STM32F103, but I've recently discovered that the ones I've been supplied with are fakes, which have a tendancy to blow up :( It seems as if no genuine F103s are available now, so either I have to throw away 2 years of work, or switch to a newer, widely-available STM32 - assuming there is such a thing?

This topic has been closed for replies.

4 replies

waclawek.jan
Super User
May 21, 2022

Due to the Great Chip Shortage, any suggested alternative would be hard to find... but perhaps try to start with the 'F30x (see AN4228).

"Equivalency" depends on the particular feature mix you've used. One thing is surely different, the 'F1 has a different GPIO structure than all other STM32.

JW

Tesla DeLorean
Guru
May 21, 2022

CubeMX is supposed to have a means of indicating equivalent parts.

I'm not sure the 64-pins devices have been consistent, the 144-pins ones have been more so.

Not sure availability on the F3's is significantly better, the F1's are still made and consumed in large volumes, it's just that all available production is spoken for.

You might do better looking for parts you can source, and then pivot into those.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Piranha
Principal III
May 21, 2022

The STM32G491CCU6 at Mouser looks hopeful.

Moving to another STM32 series is not throwing away years of work. With the knowledge and experience you already gained, moving should take a maximum of few months and you will gain additional features and experience.

SCook.1
SCook.1Author
Associate III
May 23, 2022

Thank you for your answers. So my problem isn't due to the F1 being discontinued, but 'just' the global chip shortage. (Although, if that's the case, why can't I order F1's directly from ST?)

As far as I can tell the F3 isn't any more available than the F1.

The STM32G491CCU6 looks really nice - the RNG would be particularly useful for my product, however it only seems to offer pins for the first 4 ADC1 inputs, but my project uses all 8 ADC1 input pins available on the F103. Is there any way around that limitation?

I'm also imagining a scenario where I spend 2 months converting my project to the G4 only to find the stock of those has fallen to zero - it could presumably happpen tomorrow!

Incidentally, I'm assuming the F103's I had fitted by JLCPCB were fakes, but how can I tell for sure?

Piranha
Principal III
May 23, 2022

I see 10 single-ended inputs on ADC1 alone, and there is also ADC2 and ADC3.

> Although, if that's the case, why can't I order F1's directly from ST?

You have some strange understanding of the term "shortage"... ;) But you probably can order, just the delivery times will be huge.

> it could presumably happpen tomorrow!

Unfortunately it can... It's just that for the newest parts it's less likely.

SCook.1
SCook.1Author
Associate III
May 24, 2022

Regarding ADC1 inputs, you are correct - I didn't notice the other 6 inputs :) In my defence, they're arranged pretty randomly.

I'm still debating whether to try redesigning using the G4 or not. One problem is that I can't find any dev boards, so I'd have to use my product as the dev board. It also looks like I'd need to redesign the PCB layout quite a bit - and probably quite a lot of the code, as I (probably unwisely) went for 'baremetal' register manipulation for speed (and learning) reasons. OTOH, I only used ADC1, SPI1 and GPIOs.

When I asked why I can't order F1's from ST, I meant that they're just listed as "out of stock", with no lead times, unlike some of their newer products.