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

Can the nRF52 detect whether a JLink is connected to the debug port?

I want to dump lengthy log data out through an RTT connection if the JLink is connected but NOT spend that time if there's no physical RTT channel present. The idea is that our customers won't have JLink connected and won't suffer through that delay (slow flash memory read), but engineering will have the choice of either capturing that data or having a rapid power down.

Related