How to reuse KL02 reset pin as GPIO

cancel
Showing results for 
Search instead for 
Did you mean: 

How to reuse KL02 reset pin as GPIO

48 Views
eve
Contributor I

How to reuse KL02 reset pin as GPIO?

Labels (1)
0 Kudos
2 Replies

38 Views
nxf56274
NXP TechSupport
NXP TechSupport

要禁用reset功能在fopt寄存器里

nxf56274_0-1632644581515.png

fopt在

aa2.PNG

FLASH configuration在代码里位置

nxf56274_1-1632644615204.png

 

 

0 Kudos

40 Views
ErichS
Senior Contributor IV

In principle, you have to mux the pin as a GPIO pin and disable the reset functionality. Best if you consult the reference manual.

How to do this with Processor Expert or in general, see https://mcuoneclipse.com/2013/02/16/using-the-reset-button-on-the-freedom-board-as-user-button/ (using KL25, but KL02 is very similar).

I hope this helps,

Erich

PS: I recommend to use a 'safety line' and not remuxing the pin right after reset, otherwise you might have difficulties to access the device using a debugger.

0 Kudos