Cmsis, Interrupt on blackpill

@maxgerhardt
Thank you, clearing the interrupt pending bit fixed it.
I got the code from a tutorial on Youtube which you can see here.
Now that i watch it again, he also is clearing the interrupt pending bit. I must have looked over it.
I also needed to add this line.

TIM2->CR1 |= TIM_CR1_CEN;
1 Like