How to make a Release configuration of CubeMX generated project?
Started from real scratch. Well... almost. Used the CubeMX to create a very simple project for my board that just toggles a pin. And got as same behaviour as my other project. It works only in debug mode, not standalone. It does not react on reset either.
So, what is the big difference between example projects by STM and CubeMX projects from the same authors that does not allow to run an application in standalone mode?
Seems like the difference in the boot code that runs before going to main, not in compilator configuration. Could anybody help with that? Probably need to take a look to the boot assembler code.