AnsweredAssumed Answered

Problems with TIM input capture

Question asked by Paulstrom.Bjorn on Oct 11, 2016
Latest reply on Oct 18, 2016 by Clive One
Hello, I am having some difficulties with input capture on the nucleo64-r401re.
I manage to generate a PWM signal to a ultrasonic sensor, that replies correctly (checked with oscilloscope), however i do not manage to capture the returning data correctly it seems. The callback fires but the data it reads is always the same.

Here is my code:
http://paste.ofcode.org/wsXi8arKfbCxHGy3fBQBf9

Any ideas to what I am missing?

Outcomes