Extra current when Segger JLINK connected - software workaround?

Custom board with NRF52832, getting close to production, my question is about recommendations or best practices for programming in production and power testing.

Our bed of nails will support programming firmware via SWD, as well as power measurement post programming. The problem is that when a Segger JLINK is physically connected to the board, the idle/off current is ~40uA higher than it is when the JLINK is disconnected. I have seen this before and it's not exactly a surprise, but I was wondering if there is a script or command that can tell the NRF52 or the JLINK to disconnect the SWD interface or the Vref so that power testing can take place. It's not out of the question to add electronic switches to the fixture to disconnect the JLINK pins for power testing, but it would be a lot more ideal if there was a way to handle this in software.

Thank you!

Related