Skip to main content
Tobe
Senior III
December 4, 2023
Solved

No Interrupts with timer encoder function? Nucleo G431KBT6

I tried to make an interrupt work with encoder input on timer 1. It does not fire interrupts.

Interrupts are activated (the code is reached).

Are there simply no interrupts possible, or is it another problem that i have to figure out?

This topic has been closed for replies.
Karl Yamashita
Karl YamashitaBest answer
Principal
December 5, 2023

Did you start the timer?

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source

3 replies

TDK
December 4, 2023

Interrupts can happen when using a timer in encoder mode, but they're not particularly useful. What are you trying to achieve?

"If you feel a post has answered your question, please click ""Accept as Solution""."
Karl Yamashita
Karl YamashitaBest answer
Principal
December 5, 2023

Did you start the timer?

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source
Tobe
TobeAuthor
Senior III
December 5, 2023

No, i never thought, that i have to start the "counter", since i was counting from the outside. Also did not start it as interrupt.

Its quite a bit confusing, that cubeMX integrates functions and code, but in other parts it doesnt, which is not so obvious, if you dont know this stuff well. I have to get used to it.