lpcware

SWD: How to use them in alternate pins

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by fjrg76 on Thu Sep 27 17:55:47 MST 2012
Hi

Most NXP Cortex-M microcontrollers have the SWD mapped in more than one location. For example, in the LPC1227 there are to groups of pins for that purpose:

PIO0_25, PIO0_26: Native SWD location
PIO0_18, PIO1_2: Alternate location

My question is: how can I debug using the alternate locations? Suposse that for some reason I need to use the native SWD's location, so I still have the chance to debug using the alternate location, how do I do that?

I figure out that I must upload the binary through ISP. And in such a code is coded the remapping. Then I need to "attach" my debugger to the running code, is that correct?

Thank you!!

Outcomes