LPC802, SWD disabling

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC802, SWD disabling

Jump to solution
563 Views
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 Kudos
Reply
1 Solution
548 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
549 Views
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 Kudos
Reply