Debugging setup issue on ST discovery and eval board
These are known problems with CubeMX (you didn’t mention the projects were created by CubeMX).
We hope ST will have corrected CubeMX SW4STM32 project generation in a forthcoming release of CubeMX (and then update the example projects delivered with their firmwares).
Thanks for your patience,
Bernard