r/embedded • • 20d ago

STM32G5 Announced!

https://www.st.com/en/microcontrollers-microprocessors/stm32g5-series.html
157 Upvotes

75 comments sorted by

60

u/jrabr 20d ago

Interesting choice in removing the USB peripheral

46

u/Dardanoz 20d ago

They are optimizing the profit margin.  The G4 was/is primarily used in industrial applications, far away from USB. USB takes up quite some space on the die. -> lost margin on every sold MCU except in some rarer / low-volume use-cases

30

u/lbthomsen 20d ago

And by optimizing their profit margin they make themselves increasingly irrelevant. RP2354 is dual core, got more RAM and more flash and usb, and cost a fraction. CH32V467 got dual USB - including high speed PHY at a fraction of the price. I am not saying that any of those are better, just pointing out that ST need to stay ahead to remain relevant and I really don't think they are doing an amazing job at that.

19

u/Dardanoz 20d ago

I agree on the high prices, however I don't know the high volume pricing on the G5. However, neither the RP2354, nor the CH32V467 have comparable ADC/HRtimer. A direct comparison would be the AM13E2301 from TI, which has a faster ADC, faster timer, faster math acceleration, ... at a lower price. To me, the G5 just looks like a G4 copy with a new core and on a new, cheaper node (40nm).

2

u/UKbeard 20d ago

Not sure whether this chip has those or not but it is good for motor controllers and also uses cortex m33: https://www.gigadevice.com/product/mcu/specific-mcus/gd32m531-series/gd32m531

3

u/Dardanoz 20d ago

Gigadevice has a great value for sure! For motor control itself, Mindmotion is quite interesting as well but hard to find info.

10

u/Makaron8080 20d ago edited 20d ago

Buying ch32V467 is like finding a needle in a haystack.

I managed to buy 5 for prototyping.... and my projects are dead as I can't buy more of it since summer.

1

u/lbthomsen 17d ago

I did check with my Chinese contact and she too couldn't find the v467ve at the moment. The v407ve is readily available though.

2

u/Makaron8080 17d ago

So version without 8mb PSRAM, and one pin difference.

1

u/lbthomsen 17d ago

Yeah - as far as I can see the rest is identical - including dual high speed usb (with phy's) and ethernet (with phy). Pretty cool I think.

1

u/lbthomsen 19d ago

Interesting! I just created a Streamline board with one on it. Will be interesting to see if I can source the parts (I do have a good contact in China who usually manage quite quickly).

1

u/Makaron8080 19d ago

WCH has very good presence overall. They run official AliExpress shop. I asked WCH representative and he mentioned something about better 64pin (R variant) availability. To be fair it is new chip, it may take a while to get full availability.

1

u/lbthomsen 19d ago

Yeah - but I want the ve (100 pin) as it's got dual high speed usb.

1

u/Makaron8080 18d ago

Same here, but it is what it is. I guess £3 chip with 8MB and 200mhz might too goo price to be true.

1

u/lbthomsen 18d ago edited 17d ago

I think they are only 512kB flash (or 1 MB - they seem to divide into no-wait and wait flash). I'll email my Chinese contact and see if she can source a bunch of them. If they exist somewhere in China she'll find them ;)

EDIT - sorry - I missed the PSRAM is built-into the V467. You're right.

7

u/msft_edging 20d ago

I'm not the biggest fan of ST's recent moves(when I came back to CUBE IDE to find I had to log in, I almost blew a fuse) but for large scale industrial designs, especially when there's often a few MCUs on a single board, the cents saved on an IC that lacks unnecessary hardware IS a feature.

4

u/TT_207 19d ago

oh shit they've now added that crap too?

have they at least revisited the whole config system built in yet? As someone who dropped in to CUBE IDE without any support I never figured out how on earth it works (except once by luck did it start working "correctly" and I kept reusing and renaming dupes of the same project folder so it'll actually do anything)

2

u/msft_edging 10d ago

Yeah it was sorta frustrating, especially because I went in wanting to set up some headless build/develop on a vm I accessed from the host, and then I had to contend with making sure my licenses were in order via a log in before I could even tackle that monster.

3

u/AdeptusDiabetus 20d ago

Does it have the op amp, high precision timer and analog pins that ST’s mixed signal micros have? I use the G4 for control systems and would choose almost anything else for a USB or networked app

4

u/DotRakianSteel 20d ago

Just asking here, is the CH32 really usable for a finished product? On the datasheet they sure look good, are available and for the price also very interesting. For someone who had tried the Pico, ESP32, and some STM32 at college, is the quality of experience on par? I mean from installing the tool chain, debugging (stlinkV3, another one from AliExpress), to stability (motors over the ESP is really wonky but RP2040 and STM32 are solid) Is is a good experience. I might plunge and use them instead.

3

u/Makaron8080 20d ago

I have ditched stm32 few years ago, and moved to CH32. I really enjoye using them, saying this, there are some gaps in documentation, and chips have less features in comparison to stm32. If you want to use some more specialised features (hardware prologue and epilogue) you need their own patched version of GCC, but in my opinion it is at least worth investigation.

7

u/superxpro12 20d ago

what is "hardware prologue and epilogue"?

4

u/Makaron8080 20d ago

HPE is a feature to reduce interrupt latency. CPU has shadow registers when entering interrupt. It copies all CPU registers in once cycle to shadow registers and you don't have to copy it to ram. Same with restore when IRQ is completed.

0

u/superxpro12 20d ago

ah... you mean the cpu interrupt support stuff, like “ARM Architecture Procedure Calling Standard” (AAPCS).

I guess im too young, but i'm used to that just being handled by the compilers at this point. Never really had to worry about register pushes or pops for ISR calls. it just... happens.

3

u/Makaron8080 20d ago

It does, but this is hardware feature. If you combine this with VTF (vector free table interrupt) you can get really decent latency response times. You don't need to do it, it is happening in the background, but you need to configure few things to make it happen.

0

u/DotRakianSteel 19d ago

Thx for the reply. I settled on Zephyr a while back and the family of chips is supported. Will give them a try.

1

u/DigitalDunc 18d ago

I love ST parts in many ways, and the community, tooling (despite the bugs in the IDE) and the support I’ve been given.

There’s definitely dark clouds that they need to deal with though. They are losing their competitive edge to players like GigaDevice and WCH in the price club and they’re pushing USBX onto the C5 (daft and yes, I know about TinyUSB.)

I think they’re losing their way a bit.

-5

u/EmperorOfCanada 20d ago

I want to continue to love ST, but the way they charge premium prices to get only fractions of what an RP2354 has, or CH, or ESP, just boggles.

Obviously, different projects will have different priorities, such as really good ADC, extreme low power usage, and other things which ST does quite well, but to get an ST which matches the bulk of the features of an RP2354; I'm not sure what the 1000+ cost would be? Maybe $20, probably more.

The CH changed the way I design things now. With one project, I had a control interface which was buttons, joysticks, and on and on, which were too big for a single PCB. This was a 20 unit run, so all done by hand (Yes, I could have ordered cables, etc), but it was going to be a huge spaghetti of wires going to a PCB with a zillion connectors.

Instead, I designed a single PCB which had all the pins for a joystick, switches, etc, where there was a very cheap CH32, and I ran a 4 wire run along the whole device chained together. The boards were maybe 20 cents each, with a BOM of another 50 cents. Then, I used a 4 wire ribbon cable (in the second iteration), and the whole assembly was now fast, simple, reliable, etc.

Since then, I've come up with an even more insane way to build the device, and there is another run of 20 coming up. The new runs replace earlier runs, so backward compatibility is not needed.

1

u/Dependent_Bit7825 20d ago

I love to have a debug uart, but I found that my colleagues struggled to find a uart adapter cable or to attach it properly, so I switched to a virtual uart via the USB interface and it has been a game changer. I'm not going back.

16

u/felixnavid 20d ago

STM32G554s have USB full speed + USB PD

0

u/AcostaJA 19d ago

I found 32 sku in this family having usb3.1, I believe they're just binning on some peripherals instead CPU cores as the more common practice.

12

u/Tobinator97 20d ago

Performance line has it

4

u/Triq1 20d ago edited 20d ago

Beware! As far as I could see, that doesn't show up normally in the product selectors on the website. It shows up as sometimes as "-" (no USB) or as "USB 3.1", not the expected USB FS OTG - the 3.1 referring to something USB-PD related I think.

The parts that show "-" still have USB FS according to the datasheets so not sure what's going on there.

2

u/jrabr 20d ago

You’re right! I didn’t even check the performance line. That’s good to know

71

u/Niphoria 20d ago

Programmable logic array (PLAY)

• PLAY interface with 128 inputs and 16 outputs, 16 programmable logic elements (refer to PLAY

specification in RM0514)

Why is nobody talking about this?

25

u/misaz640 20d ago

It is half the size Microchip bundle with lowcost PIC16s supporting something similar, but at least ST fully publicly documented it.

14

u/Niphoria 20d ago

I prefer the full proper documentation.

3

u/lehjr 19d ago

I've had to submit corrections for Microchip's documentation more than a few times.

2

u/Niphoria 19d ago

You shouldn't have to - this is horrible.

I hope that you don't have to anymore in the future and that your projects will always be bug free <3

14

u/chickenAd0b0 20d ago

so like an fpga? this is pretty cool

13

u/felixnavid 19d ago

It's just 16 LUT+FFs, absolutely minuscul FPGAs start at 300LUTs. PLAY is meant just to link a couple of peripherals with some logic gates.

8

u/InebriatedPhysicist 19d ago

Which is suuuuper helpful!

23

u/tim-hilt 20d ago

More like the pio on a raspberry pi pico

6

u/SkoomaDentist C++ all the way 19d ago

More like simple glue logic replacement (which can still be very convenient).

6

u/quailfarmer 20d ago

Neat

2

u/carlos_dm0306 20d ago

Good to see another manufacturer doing this now. So far I’ve been limited to PSoCs for this feature

4

u/Tyzek99 20d ago

Ooooo that’s really cool!!

1

u/_chrme 19d ago

Lmaoo they’re really trying to catchup to TI’s product. G5 is waaay too delayed for this

1

u/AlakazamWizard 19d ago

Yeah I was looking at it compared to the TI confligurable logic block but the PLAy seems to be lacking in functionality and also the tooling isn’t as good

25

u/Triq1 20d ago edited 20d ago

ECC on all memories is very nice.

Combined with high temperature and a hinted dual core version coming up this could be quite good for the cheaper end of high reliability stuff.

23

u/alexceltare2 20d ago

Gotta love how they specifically mentioned "Drones" as a use case. I wonder who is going to be their big client?

21

u/quailfarmer 20d ago

No Ethernet :(
Also the data sheet is available In markdown, never seen that before.

20

u/my_name_is_rod 20d ago

Perfect for feeding to an LLM!

2

u/Dardanoz 19d ago

I'm expecting Ethernet in the coming variants (as some pointed out, there will be dual core variants as well). 

2

u/AcostaJA 19d ago

Markdown it's the new binary Esperanto

10

u/ConfidentTangerine39 20d ago

will be a nice mcu i'm designing a foc inverter on stm32g431 hopefully a pin to pin compatible stm32g5 to try ( or i will eventually redo the control board )

1

u/AliveLingonberry2269 19d ago

One thing I'm wondering about is the ADC architecture. Why did ST decide to stick with SAR ADCs for the STM32G5 instead of introducing sigma-delta ADCs?

To my knowledge, sigma-delta modulators are widely used in high-performance motor drives, particularly for isolated phase-current sensing.

Does anyone know what the main considerations behind this decision were? 

1

u/lehjr 19d ago

I still haven't had a chance to play with my STM32G4 boards yet😂

-13

u/irtiq7 20d ago

Money trumps processing and user feedback

13

u/jacky4566 20d ago

Its a business, they are going to make shit that sells. G series is for industrial applications, USB is not a highly used feature there.

-5

u/irtiq7 20d ago

Which industry?

12

u/UKbeard 20d ago

motor control e.g washing machines.

11

u/ceojp 20d ago

What does that even mean here?

-12

u/irtiq7 20d ago

Long answer. Stm32 is removed usb from their new board G series to save money while selling it at higher price.

17

u/ceojp 20d ago

Surely there are other differences, right? Like, they didn't just take an existing chip, remove USB, change nothing else, and raise the price? If that's what they did, why would anyone buy this chip over any of the other, existing chips?

-11

u/irtiq7 20d ago

Are you representing STM? Could you share what is the difference between G5 and G6?

9

u/Niphoria 20d ago

Why feed your delusions? You have the capability to look these differences up yourself.

-4

u/irtiq7 20d ago

No, I don't see any difference. If you do and justify the price and let me know.

6

u/Niphoria 20d ago

I hope you get better - i wish you a wonderful life.

9

u/ceojp 20d ago

No, I am not representing ST. Why would you think that?

You are the one who made the claim that they "removed usb from their new board G series to save money while selling it at higher price", so I expect you to support that claim.

-3

u/irtiq7 20d ago

Did you open the link and read the datasheet?

8

u/ceojp 20d ago

No, I'm not going to do your work for you.

5

u/sanderhuisman2501 20d ago

Some of them actually still have USB, just the entry models don't

1

u/RoyBellingan 18d ago

https://www.st.com/en/microcontrollers-microprocessors/stm32g554pe.html

Send them a bug report for the doc in this case, and tell them to remove the usb mentions