User Activity

I'm trying to measure the duration of a button press using TIM2 as a counter. I have one of the buttons triggering an interrupt which enables the timer on the positive edge, and then calls TIM2_GetCounter() on the negative edge.I'll save you all a bu...
I've now bricked 3 of these (or at least made them unable to be programmed over SWIM,) and the last one happened after I un-commented these two lines of code:TIM2_IER = 1; // Enable update interrupts TIM2_CR1 = 1; // enable timerThis s...