I'm working on MKE06Z128, IDE used is MCUXPresso V10.1 and I use the SDK, like debugger I use the PE Multilink.
As title of this request, every time I wish to access to FTM register the microcontroller goes to in hardfault.
FTM0->SC = 0x00;
when the microcontroller arrives at this line it goes to hard fault. I don't know why.
Is there someone who help me to solve that problem?
The only explanations for a hard fault here are:
1. The FTM clock gate hasn't been enabled before use.
2. The peripheral block address used to the FTM module is wrong.
3. A non-existent FTM module is being accessed.
Attached is a reference for the FRDM-KE06 which has a periodic interrupt in FTM0 (flashing red LED at 150ms half-period). Command line interface on OpenSDA VCOM at 115200 Baud.
HW Timers: http://www.utasker.com/docs/uTasker/uTaskerHWTimers.PDF
For better, faster, cheaper product developments consider the uTasker developer's version, professional Kinetis support, one-on-one training and complete fast-track project solutions to set you apart from the herd : http://www.utasker.com/support.html