This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ITM on custom nRF52 device through DK

I'm developing custom PCB with the nRF52832, and I would like to use the ITM for debugging. I don't have a J-trace or equivalent hardware, so everything will have to be done via the nRF52 DK. Am I correct in assuming it is enough to simply route the TRACEDATA[0]/SWO (21/P0.18) pin on the nRF52832 to pin 6 (corresponding to pin6 EXT_SWO on P19 on nrf52-DK) on the debug header on my device?

Edit: I forgot about the RESET pin (P0.21). I have connected the RESET pin to pin number 10 on the debug header (same as P18 on the DK). I also have a reset-button, and then also a 10k pullup connected as well. Will this pullup potentially interfere with debugging operations?

  • Hello,

    You will also have to set up the SWO module. Please see Rick's answer in this thread on how to do this.

    Try to get this up and running on the DK before switching to the custom PCB.

    Then you can use the external debugger (P19) to debug your custom PCB. Please note that there was a bug in the previous versions of the segger firmware, causing the segger chip on the DK to not switch to the external SWO pin on P19 when an external device is connected. The fix is to install JLink version 6.22f, and update the On Board (OB) Segger chip. (you will get prompted with this the next time you try to use e.g. nrfjprog the JLink firmware after updating to 6.22f). Alternatively you can solder SWO_EXT to P0.18 on the development kit that you use to debug the custom PCB.

    Then the external SWO debugging on the DK should work.

    Best regards,

    Edvin

  • Thank you Edvin! Could you comment on the question regarding the pull-up on the reset-line I edited into the first post? Basically I'm worried that the 10k pullup may interfere with debug operations.

Related