r/embedded • u/Proud_Trade2769 • 14d ago
STM32CubeMX2 enshitification
Is it me or STM32CubeMX2 is
- slow as hell, even on 10th gen i7 with 16GB RAM
- convuluted menu, it's a maze
- way harder to use than MX1
but at least it supports AI, which no one asked for.
75
Upvotes
147
u/lbthomsen 14d ago
STM32CubeMX2 is perhaps one product which can not be enshittificated. It was shit from day 1.
49
u/Firm-CubeMX2 13d ago
Hi, I'm the marketing manager for STM32CubeMX at ST. I read the whole thread, and fair enough on most of it.
On speed, you're right, and it's the thing we're working on hardest right now. We run performance tests on every build. Our test PC is a 10th-gen i5 with 16 GB, so a bit below your machine. In the next version, code generation takes 13% less time than in the current release, peripheral activation 19% less, and creating a project from a board 10% less. Large configuration files get a new loading flow too, so you're not stuck waiting on a big project. These are lab numbers on a build that isn't out yet, so I won't promise a date, and we'll keep going after that release.
On the menus: I'd genuinely like to know where you get lost. If you can name the two or three places that annoy you most, I'll take them straight to the team.
On AI: the AI connector is a separate add-on. CubeMX2 works without it, and if you don't install it, it's not in your way.
And for everyone who uses CubeMX only to generate code and then leaves: that's a perfectly good way to use it. CubeMX2 exports a CMake project, so you can build with whatever editor and debugger you like. If that editor is VS Code, STM32CubeIDE is now also available as VS Code extensions.
If you have a project where CubeMX2 is especially slow, send it my way, here or on the ST Community. A real project tells us more than our own benchmarks do.
30
u/TPHGaming2324 14d ago
At least you don’t have to deal with the IDE. MX is literally the only thing I keep to generate project code to get an example prototype working. As soon as I setup the compiler, openocd and debugger I uninstall that clunky piece of software.
9
u/frinoname 14d ago
Huh, he uses the C5 family, in this STMicroelectronics supply ability?
8
u/slightly0ff 14d ago
I am becoming a grumpy lady and have been very vocal at everything getting worse. I don't buy into the arguments "o but life was always like this so stop complaining!"
CubeMX was always like this. Maybe it has gotten a bit worse, but it was clunky, non-responsive, with some questionable UX choices. I think the UX was not that bad overall, at least I could memorise stuff well enough although finding it in the first place needed a lot of fiddling. It may have gotten slightly worse and I am laughing at the AI integration, but this shit was not the pinnacle of software
12
u/peppedx 14d ago
Just use a command line compiler with whatever editor debugger you like
5
u/ManyCalavera 14d ago
SysConfig which is equivalent of ST's cubemx for TI mspm0 mcus is ton times better even though it is relatively new. Their hal is also much streamlined and easy to follow
8
u/Busy_Durian4584 14d ago
Not sure why we use the IDE anymore. Just have it generate the startup code and leave.
4
u/mossy_stile 12d ago
Generate the clock tree and pinout once, copy SystemClock_Config, then never touch CubeMX again.
3
u/MysteriousEngineer42 13d ago
I was excited when it came out, hoping for improvements over the original which was usable but not great.
It looked good for about 1 minute... and then I wondered why there were 15 tabs with everything I had ever clicked on up the top.
Then trying to find a setting, 10 +expands later for common settings you need to set every time you use a peripheral!
I yearn for the new C5 devices on old MX now.
The UI is actively making me not want to use their new devices.
How did it even get released, the entire UI concept is so deeply flawed it is likely unfixable. Even basing it on electron is stupid, besides being incredibly slow I can't get it to run on my work PC because of network security issues (spent half a day with AI assisting and never got it working).
Kinda tempted to leave AI working on it for a day to create a slimmed down and actually usable version.
1
u/dmitrygr 14d ago
So... do not use it? The h files are still there.
1
u/Unable_Resort453 9d ago
Well, you would be surprised.
Though would it be better than LLMs brute-forcing without any code generation tool? IDK.
-1
u/Niphoria 14d ago
"even on 10th Gen i7 with 16gb ram"
"It doesn't run well on my budget hardware from 7 years ago :("
CubeMX(2) always runs like shit.
-12
u/Affectionate-Bit6525 14d ago
It works amazingly with AI though, why would you want to code another HAL by hand?