Hi. I'm using a K64 processor with KDS, and using MQX and Processor Expert via the SDK. I setup a simple FTM timer with an interrupt, but when I run the code using the debugger I never hit the interrupt handler. Has anyone been able to get this to work and if so, could you share your project and/or a screenshot of how you setup your FTM timer component please? Thank you in advance.
Hi Jason,
Attach KDS_3.0 + KSDK_1.3 new project that uses PE for FRDM-K64F.
The project has a bunch of example stuff (using FTM's for PWM, GPIO, multiple tasks) to it but I setup flexTimer3:fsl_ftm component as a timer. The overflow ISR is in Event.c and the start/stop/read timer code is in os_tasks.c Task1_task();
Two locations in the Task1_task() are provided for the test but only enable one #define at a time. The first will return counter result with FTM3 no ever having overflowed.
The second location uses the FTM3 and returns variable timer result as it is dependent on user input.
Regards,
David