FTM interrupt using KDS SDK

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FTM interrupt using KDS SDK

1,583 次查看
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.

标签 (1)
0 项奖励
回复
1 回复

1,048 次查看
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 项奖励
回复