Kinetis SDK Timer Manager?

cancel
Showing results for 
Search instead for 
Did you mean: 

Kinetis SDK Timer Manager?

Jump to solution
601 Views
JBM
Contributor IV

I am trying to figure out how to use the TimerManager in the SDK (fsl_component_timer_manager.[ch]).  I don't see anything in the SDK documentation about it and I can't find anything here.  Is it documented somewhere? 

I have in the past used the PIT timer to run a homegrown timer module (multiple independent timers from one timer source with callbacks).  It looks like the timer manager should be able to replace my homegrown solution but I don't know.  

I can't find any examples for the timer manager either.  Has anybody used it?

What I'm not seeing is how the link between FTM0 or PIT is made to the timer manager.

Thanks.

0 Kudos
1 Solution
524 Views
Pavel_Hernandez
NXP Employee
NXP Employee

Hello,

I'm using the SDK v2.11.0 from the K64-EVK board and I add that library with these steps.

Select your project and then select the icon in the yellow mark.
Pavel_Hernandez_0-1655846522967.png

Then select the Software Component.

Pavel_Hernandez_1-1655846594121.png

Type timer or manager and this will show, you can select direct or you can manage how this library works.
Pavel_Hernandez_2-1655846716307.png

Pavel_Hernandez_3-1655846766982.png

Documentation [MCUXpresso SDK API Reference Manual: Manager (nxp.com)]

Best regards,
Pavel

 

 

View solution in original post

0 Kudos
8 Replies
583 Views
Pavel_Hernandez
NXP Employee
NXP Employee

Hello,

Could you tell me about the MCU or Board you are using? please.

Best regards,
Pavel

0 Kudos
581 Views
JBM
Contributor IV

It's the MK64FN1M0VDC12

0 Kudos
573 Views
Pavel_Hernandez
NXP Employee
NXP Employee

Hello,

I was reviewing the SDK, but Could you tell me about the IDE you are using? please.

Best regards,

Pavel

0 Kudos
571 Views
JBM
Contributor IV

MCUXpresso IDE v11.4.0 [Build 6224] [2021-07-15]

0 Kudos
525 Views
Pavel_Hernandez
NXP Employee
NXP Employee

Hello,

I'm using the SDK v2.11.0 from the K64-EVK board and I add that library with these steps.

Select your project and then select the icon in the yellow mark.
Pavel_Hernandez_0-1655846522967.png

Then select the Software Component.

Pavel_Hernandez_1-1655846594121.png

Type timer or manager and this will show, you can select direct or you can manage how this library works.
Pavel_Hernandez_2-1655846716307.png

Pavel_Hernandez_3-1655846766982.png

Documentation [MCUXpresso SDK API Reference Manual: Manager (nxp.com)]

Best regards,
Pavel

 

 

0 Kudos
493 Views
JBM
Contributor IV

Thanks, I was able to add the library, I just couldn't find the documentation.  NXP might want to put a link to the documentation on the SDK home page (SDK).

Also, that link you provided to the documentation is Rev 0.  Is that the latest?  I'm finding errors in the button documentation:

1) button_gpio_config_t has three fields in the documentation, but four in the source

2) BUTTON_HANDLE_DEFINE takes two arguments in the documentation, but one in the source.  BUTTON_HANDLE_ARRAY_DEFINE takes two arguments, but isn't documented.  

I gotta believe there's a newer rev of the documentation out there, but I can't find it.

0 Kudos
460 Views
Pavel_Hernandez
NXP Employee
NXP Employee

Hello,

Could you try to update the SDK and then search if the document is here?

Pavel_Hernandez_0-1656362127624.png

Best regards,
Pavel

 

0 Kudos
410 Views
JBM
Contributor IV

Thanks - I didn't know that was there.  The only thing it shows, is two PDFs, Release notes and Getting started.

0 Kudos