Skip to main content
Associate III
Question

Unbiased Review of the new and "improved"(?) STM32CubeMX2

 

@lbthomsen of STM32World has published a review of the new STM32CubeMX2, what is good (not so much), indifferent and BAD (a lot). He tries to get it working, browse through the features, and has a lot of opinion on this matter.  https://www.youtube.com/watch?v=61r83TTzDfk

End of the day, IF you plan to use future STM32 families (starting with STM32C5) you have no choice than to use CubeMX2 AND the very painful migration from HAL to HAL2 (not compatible, maybe some future tool can assist in such migration). Even if migration is possible, then you will have the pleasure to support multiple versions of YOUR code on old vs new MCU families. Have FUN.

For the people without perfect vision (like myself), embrace yourself for 4 pixels font sizes, and contrast-free dark-white-on-white-backgrounds text. Lovely! At least there is plenty of white space around the text that can sooth your soul.

Now is the best time for experienced STM32 shops to leave HAL, CubeMX and go Bare Metal ;)

35 replies

Sara BEN HADJ YAHYA
ST Technical Moderator

Hello,

I’d like to let you know that the font size issue has been improved in STM32CubeMX2 release 1.1.0.

Thank you again for helping us improve the tool.

Best regards,
Sara

 

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
unsigned_char_array
Lead III

I can’t download it. After logging in it keeps loading forever.

 

"Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."
Associate

I 2nd the horrible UI. Default zoom on my 2K monitors (this is work after all) is 43%. You can zoom it, but if you do almost anything, it snaps back to the default. No scroll bars. so you have to click on white space (“dim white”?) and use cursor keys to scroll (what is this, 1995 UI) There is no select to zoom.

And the new HAL. main() returns an int. For errors it doesn't go to an error handler it returns from main() with -1. Where does an embedded main() return to? 

If you’ve been using the original CubeMX since 1.0 and learned all its quirks and enjoyed its refinements over the years, you get to start all over with HAL2.

hritter
Associate II

As a 37 year veteran of embedded systems and an 18 year veteran of ST’s MCUs and tools I believe that ST has stepped on themselves BIG TIME with CubeMX2 and in the process crapped on everyone who has loved using their MCUs. MX2 is incredibly painful and the new HAL code sucks. They went to great lengths to hide low level code and force the user into becoming a software engineer instead of the firmware engineer that he spent his career becoming.

When you cannot use  “IO_PORT->REGISTER = xxxx” and MUST use HAL_GPIO_WritePin() instead, someone has their head up their backside.

Good luck ST. You’re going to need it.

Pavel A.

​@hritter Do you have STM32C5 or other new STM32 that requires CubeMX2 and HAL2? For any older MCU just use the familiar Cube1 and libraries, nothing changed from this POV.

> force the user into becoming a software engineer instead of the firmware engineer that he spent his career becoming.

Unfortunately, “this is the way”. Users are required to become AI engineers and master all sorts of AI assisted  “agentic workflows”, in all areas - from board design to software. Not even mentioning the need to learn the new EU requirements, Zephyr, Rust and so on. 

hritter
Associate II

Yes, we wanted to use a c552 but the time it has taken to use the new tool has become ridiculous. Not to mention the wasted processor cycles in the new HAL. Management is now rethinking their choice of MCU and it probably won't be ST.

Emil Damkjaer PETERSEN
ST Employee

Hello ​@hritter 

 

Sorry to hear that you are facing issues with the STM32CubeMX2 and HAL2.

 

I would like to understand what the exact pain points you are running into?

With HAL2 we have made minimal changes to LL, and HAL2 is now based on LL to make it more visible on how LL can be used, but maybe this is not clear or there are some elements that are hiding the LL?

Furthermore I am also very interested in where we are spending extra processor cycles, since this is indeed opposite of the aim of HAL2?

 

I am looking forward to getting your feedback.

Best Regards,

Emil 

 

hritter
Associate II

Using MX2 v1.1.1

I selected LL for the GPIO module and then the your generated code failed to build. It had problems with GPIOx definitions in a header file.

hritter
Associate II

OK… I’m now using MX2 v1.2.0     I have LL selected for GPIO and can now use IO_PORT->REGISTER = xxxx but EXTI code will not compile. The ony example and explanation for using EXTI is for HAL not LL. HAL code will not build with LL selected.

 

hritter
Associate II

How do I use EXTI with LL selected? Google comes up empty for MX2

TDK

​@hritter If you have questions on how to set up your project, you should make another thread. Include your IOC2 file there if you are having difficulties, or at least enough information to duplicate the problem. You haven’t even provided the chip you’re using, or error messages, etc.

“HAL code will not build with LL selected.” may be true but it’s not very useful to find the problem or solve your particular issue.

"If you feel a post has answered your question, please click ""Accept as Solution""."