STM32 products are nothing but problems ... ;(
You wrote: “It has nothing to do with learning, I load example code and it fails to build, so what conclusion we can come up with ? To me it looks like perfect example of bad software....I don’t know whether it’s CubeMX or SW4STM32 or both fault....”
Exactly true. This is basic! I experience the same annoyance when importing a project designed for SW4STM32 Eclipse - and we know importing is a simple process in Eclipse. It shoudl work out of the box but it doesn’t. We talk Projects from the CubeMX Repository.