AnsweredAssumed Answered

Using the NMI_b pin as GPIO on KL15 device

Question asked by Safwat on Jun 6, 2013
Latest reply on Jun 10, 2013 by Safwat

Hi everyone. I am working with a 32pin KL15 MCU. I need to disable the NMI_b function on PTA4 and use it as a normal GPIO.

I understand from the reference manual that I need to write to FTFA_FOPT--> NMI_DIS to disable the NMI function.

 

This is what I have done so far:

 

> Write 0xFB to address 0x0040D in flash configuration field. 0x0040D is the address for FOPT. Writing 0xFB should set 0 in the NMI_DIS bit.

> Verified the written value by reading back the memory.

> Configured PTA4 as a GPIO. Set direction to Output. Disable Passive filter. Disable internal pull up.

> Toggle the pin at 1Hz in a loop.

 

But I am not able to see any change in the state of PTA4. Can someone help me find what I am missing?

Thanks!

Outcomes