Use normal one-shot timer with KE04 FTM0 / 1

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

Use normal one-shot timer with KE04 FTM0 / 1

Jump to solution
856 Views
jun1
Contributor V

Hi.

Please kindly advise.

The SDK FRDM-KE06Z driver example has a sample that uses FTM2 as a timer.

Is there an ordinary timer sample for FTM0 and FTM1? ∙ A hard fault will occur if the FTM2 sample source is rewritten to FTM2-> FTM1.

jun

Labels (1)
0 Kudos
Reply
1 Solution
743 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi jun yamada ,

   KE series FTM0/1 is not the same as FTM2, that's why you get the hardfault when you use the FTM2 code to operate the FTM0/1 directly.

   Please check the KE06 reference manual, Table 3-33. FTM modules features

   pastedImage_6.png

You can find a lot of register in the FTM2, but the FTM0/FTM1 doesn't have it.

So, when please check the flash driver which you are using with FTM0, FTM1, make sure you didn't operation the register which just FTM2 has it.

About the FTM1 and FTM2 code, you also can refer to the KExx driver:

FRDM-KEXX Driver Library Package 

The examples also used the FTM2, but the driver can support FTM0/FTM1.

The SDK need to modify the related code, make sure your didn't call the FTM2 unique register.

If you still have question about it, please kindly let me know.

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
3 Replies
744 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi jun yamada ,

   KE series FTM0/1 is not the same as FTM2, that's why you get the hardfault when you use the FTM2 code to operate the FTM0/1 directly.

   Please check the KE06 reference manual, Table 3-33. FTM modules features

   pastedImage_6.png

You can find a lot of register in the FTM2, but the FTM0/FTM1 doesn't have it.

So, when please check the flash driver which you are using with FTM0, FTM1, make sure you didn't operation the register which just FTM2 has it.

About the FTM1 and FTM2 code, you also can refer to the KExx driver:

FRDM-KEXX Driver Library Package 

The examples also used the FTM2, but the driver can support FTM0/FTM1.

The SDK need to modify the related code, make sure your didn't call the FTM2 unique register.

If you still have question about it, please kindly let me know.

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
743 Views
jun1
Contributor V

thank you for your answer.
Added / changed fsl_ftm driver.
This was fine.

pastedImage_4.png

pastedImage_3.png

0 Kudos
Reply
743 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Thanks for the updated information.

That's very good to hear it works OK on your side.

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply