Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SWO pin (pin 6) on the Debug In port?

What is the purpose/functionality of SWO pin (pin 6) on the Debug In port?

I see it connected to P0.18 on PCA10040 and P1.00 on PCA10056, but I’m developing custom board with off the shelf nRF52840 BT module and P1.00 is not quite easy accessible,  so I’m wondering what software is using this pin  and for what purposes and can I swap it with some other pin without sacrifice any functionality?

Thanks

  • Hi, 

    What is the purpose/functionality of SWO pin (pin 6) on the Debug In port?

    Debug in port makes it possible to connect external debuggers for debugging when the interface MCU USB cable is not connected or the Development Kit (DK) is in nRF only mode. SWO is the Serial wire output trace of ITM data.  Please see Debug and trace

     

    what software is using this pin  and for what purposes and can I swap it with some other pin without sacrifice any functionality?

    Debugging with trace function in the IDE will use this pin to get the trace data. TPIU's trace pins are multiplexed with GPIOs, and SWO and TRACEDATA[0] use the same GPIO, see Pin assignments for more information.  

    -Amanda H.

Related