Search found 1 match
- Sun May 02, 2021 8:25 pm
- Forum: MicroPython pyboard
- Topic: Unhandled interrupt occurs after switching Timer OC modes on STM32L476
- Replies: 0
- Views: 2966
Unhandled interrupt occurs after switching Timer OC modes on STM32L476
I'm working with output compare interrupts using uPy 1.12 on an STM32L476 Nucleo to blink the user LED. To guarantee that the pin starts low I am configuring the OC channel initially in forced inactive mode. TIM2 = Timer(2, period=0x7FFFFFFF, prescaler=79) T2CH1 = TIM2.channel(1, pin=Pin.cpu.A5, mod...