FTM interrupt using KDS SDK

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FTM interrupt using KDS SDK

1,144件の閲覧回数
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 返信

609件の閲覧回数
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 件の賞賛
返信