hi,
I had the same issue.
I solved it by uninstalling the 5.4 version of STMCubeMX and reinstalling the previous version (5.3).
You could try this.
yes ,older version working perfectly.
View all questions in Arm Development Platforms forum