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.
Solved! Go to Solution.
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.
Have a nice day,
Jun Zhang
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.
Have a nice day,
Jun Zhang