MKW40 debug without PTA2 reset pin

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

MKW40 debug without PTA2 reset pin

跳至解决方案
1,387 次查看
michaele
Contributor II

Hello,

is it possible to download and debug software in KDS when the PTA2 is not configured as RESET_b?
In the flash option register FTFA_FOPT, RESET_PIN_CFG is set to 0 to disable the reset funcion, cause I need the PIN for GPIO functionality.

I am using the Segger J-LINK Debugger.

Greetings,

Michael

标签 (1)
1 解答
1,245 次查看
santiago_lopez
NXP Employee
NXP Employee

Hi Michael,

 

It is possible but you are going to have a hard time doing it. The debugger uses the reset pin to set the MCU in a known state before downloading the firmware or attaching for debug. If you disable the reset pin, you have to make sure that the MCU is in reset state before downloading the code (which is done by power cycling the MCU right before the debugger attempts to attach). This is something hard to do since it requires synchronization between the debugger and how fast you are powering the board.

 

My recommendation for you is debug your application excluding the part of the application that requires the RESET pin and until everything else is working disable the RESET pin. Also, if there are other pins that you can use a multiplexor with that could be handy too.

 

Saludos

 

Santiago Lopez – Systems Engineering

在原帖中查看解决方案

2 回复数
1,246 次查看
santiago_lopez
NXP Employee
NXP Employee

Hi Michael,

 

It is possible but you are going to have a hard time doing it. The debugger uses the reset pin to set the MCU in a known state before downloading the firmware or attaching for debug. If you disable the reset pin, you have to make sure that the MCU is in reset state before downloading the code (which is done by power cycling the MCU right before the debugger attempts to attach). This is something hard to do since it requires synchronization between the debugger and how fast you are powering the board.

 

My recommendation for you is debug your application excluding the part of the application that requires the RESET pin and until everything else is working disable the RESET pin. Also, if there are other pins that you can use a multiplexor with that could be handy too.

 

Saludos

 

Santiago Lopez – Systems Engineering

1,245 次查看
michaele
Contributor II

Hi Santiago,

thank you very much for your excellent feedback :smileyhappy:

0 项奖励
回复