Resolved! tim2 interrupt activate causes infinite loop in stm32
I have generated C project with Tim2 interrupt configuration from CubeMX and converted into C++ project. when the project is in C timer2 is working. but when I changed it to C++ project, after interrupt enable function execution it stuck at Infinite ...