How to reuse KL02 reset pin as GPIO

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to reuse KL02 reset pin as GPIO

959 次查看
eve
Contributor I

How to reuse KL02 reset pin as GPIO?

标签 (1)
0 项奖励
回复
2 回复数

949 次查看
nxf56274
NXP Employee
NXP Employee

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

nxf56274_0-1632644581515.png

fopt在

aa2.PNG

FLASH configuration在代码里位置

nxf56274_1-1632644615204.png

 

 

0 项奖励
回复

951 次查看
ErichStyger
Senior Contributor V

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 项奖励
回复