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
Solved! Go to Solution.
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
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.
-------------------------------------------------------------------------------
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
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.
-------------------------------------------------------------------------------
thank you for your answer.
Added / changed fsl_ftm driver.
This was fine.
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.
-------------------------------------------------------------------------------