STM32 gotchas
17. Program freezes after enabling an interrupt

What to do, when enabling interrupt in a program causes other effects of the program (e.g. "heartbeat" blinking in main loop) to freeze?

To certain extent, this situation is similar to the previous issue, and some of the steps mentioned there are usable here, too. Debugging now might start perhaps with stopping the program in the debugger and observing, "where did it go".

Some of the root causes may be: