serious bug. cubeMx generation issue under C++
Ah, they already do include this (I use C++ in CubeMX projects right now - as in today).
You will however find life much easier if you confine yourself to naming C++ _exclusive_ headers to *.hpp (or similar)
There are several posts here about converting a project to C++