LPC802, SWD disabling

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

LPC802, SWD disabling

跳至解决方案
1,051 次查看
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 解答
1,036 次查看
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 回复
1,037 次查看
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 项奖励
回复