October 18, 2026

First experiences with STM32 CubeMX -- Future work

It is now November 19, 2026, and I have set this aside to work on another project. Here is my perspective after letting this sit for a month.

CubeIDE is a nasty Java/Eclipse based nightmare and I won't have anything to do with it. CubeMX is handy and probably an accelerator to get a project started. It will generate a Makefile framework, which is ideal for my way of working.

Networking with what is supplied with Cube is buggy and essentially useless. It is based on LwIP, which deserves a closer look, perhaps in conjuntion with my Kyu project. This would enable me to decide if the problems are with LwIP, or how ST integrated it into Cube.

I need to pay attention to the MPU in the H743 chip. Cube claims to help me set this up, but there are details in connection with LwIP that did not "just work" out of the box and required fiddling that was not officially documented.

It would be worth trying other things besides networking in conjunction with CubeMX -- in particular USB. It is was possible to easily get a virtual console running (that wasn't buggy) that would be a big win.

Some starting points

This is where I left off:

First, I was looking at LwIP here:

/Projects/STM32/Cube/Projects/Net1/Middlewares/Third_Party/LwIP/src/cor

I was looking at some MPU setup here, as well as starting to read AN4838 "Introduction to memory protection unit management on STM32 MCUs"

cd /Projects/STM32/H743
AN4838.pdf
/Projects/STM32/Cube/Projects/Net1/Core/Src
main.c


Have any comments? Questions? Drop me a line!

Tom's software pages / tom@mmto.org