2019-11-26 03:19 AM
2019-12-01 04:48 AM
If you have an external crystal, you can check if it oscillate and the core is clocked. HSI is supposed to be the backup internal clock.
Most importantly, if your code works with STLink, does your MCU gets 3.3V from USB Device regulator properly?
Grab an oscilloscope and look at your signals and supplies.
If your code works with debugger it means it is in the flash already.