LPC802, SWD disabling

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

LPC802, SWD disabling

ソリューションへジャンプ
989件の閲覧回数
asier
Contributor III

Hi,

I disable SWD in LPC802 because I need to use PIO0_2 and PIO0_3 as general purpose outputs. Is it  mandatory to disable SWD to use these ports as general output ?

On the other hand, once I disable SWD ("__CRP const unsigned int CRP_WORD = CRP_CRP1;") I can no longer access LPC802. I put ISP pin low but LPC802 is not detected via SWD. Is that correct? How do I flash LPC802 via SWD again?

Thanks is advance,

Asier.

0 件の賞賛
返信
1 解決策
974件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi asier 

You want to set PIO_2 PIO_3 as GPIO, no need to set CRP1 to disable SWD. Just set the pin in SWM module. Set SWDIO to connect P0_2 and P0_3.

If you already enabled CRP1. Doing mass erase in ISP mode can recover it.

ZhangJennie_0-1671615620926.png

 

Have a nice day,

Jun Zhang

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
975件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi asier 

You want to set PIO_2 PIO_3 as GPIO, no need to set CRP1 to disable SWD. Just set the pin in SWM module. Set SWDIO to connect P0_2 and P0_3.

If you already enabled CRP1. Doing mass erase in ISP mode can recover it.

ZhangJennie_0-1671615620926.png

 

Have a nice day,

Jun Zhang

0 件の賞賛
返信