AnsweredAssumed Answered

Urgent: Need help on Hard Fault

Question asked by 0815 on Dec 15, 2015
Latest reply on Dec 15, 2015 by 0815

I've read something about Hard Faults so far and I'm also using a Hard Fault Handler on my KEA128.

However I can't find the reason what is going wrong here.

 

This is the line of C code resulting in a Hard Fault:

FTM2_MODE = (FTM_MODE_FAULTM(0x00) | FTM_MODE_WPDIS_MASK);

I can debug this code in Disassembly View:

disassembly.PNG

Actually I'm getting the Hard Fault directly on the first assembly instruction, but before it happend only on the 3rd instruction.

 

Any hints? Thanks in advance!

Outcomes