FTM interrupt using KDS SDK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FTM interrupt using KDS SDK

989 Views
jasonpionke
Contributor I

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.

Labels (1)
0 Kudos
1 Reply

454 Views
DavidS
NXP Employee
NXP Employee

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

0 Kudos