MKW40 debug without PTA2 reset pin

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MKW40 debug without PTA2 reset pin

ソリューションへジャンプ
788件の閲覧回数
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 解決策
646件の閲覧回数
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 返答(返信)
647件の閲覧回数
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

646件の閲覧回数
michaele
Contributor II

Hi Santiago,

thank you very much for your excellent feedback :smileyhappy:

0 件の賞賛
返信