LPTMR pulse counter bug?

23 Nov 2015

Hello,

i discovered strange behaviour when interfacing the LPTMR module using mbed framework. I cannot configure LPTMR to work as a pulse counter. The value of CNR is always increasing, no matter if I set my pulse counting pin (PTC5) to GND or +3.3V.

I have attached my main.cpp (/media/uploads/arminb/main.cpp) file for you, maybe you can test it on your hardware. I posted this topic also in Kinetis forums: https://community.freescale.com/message/589693 For the guy responding to my issue my code seems to work on his side but he is not using mbed framework. What is happening here?

My platform is FRDM-K64F (700-28163 REVD; SCH-28163 REV E3)

01 Mar 2016

Armin,

If you would like for others to try to reproduce your code please publish it so we can import it and duplicate your setup. You can do this by right clicking on your program in the compiler and clicking 'publish' . Once you have published the program you can share a link to it so others can import and try to duplicate your error.

Here to help,

-Austin