Running with J-Link v7.98g software and a J-Link Plus USB probe S/N 601006986 and nrfjprog 10.24.0
Test 1;
1) Connect J-Link Plus to target device (with a Laird BL652)
2) Start J-Flash, open nRF52832_xxAA device, SWD speed 4000
3) Erase chip, program & verify application (device uses ~3.2mA at 3v)
4) Close J-Flash (device is not reset and now uses ~5.4mA at 3v)
5) Run J-Link and execute reset script (device resets and drops to ~32uA at 3v).
6) Disconnect J-Link Plus from target device (device uses ~2.0uA at 3v)
It requires a separate reset for the flashed application to run and the device to enter its low power state. The low power state is also achieved if I use the J-Flash Start Application (F9) function before closing J-Flash.
Test 2;
1) Connect J-Link Plus to target device
2) Start J-Flash, open nRF52832_xxAA device, SWD speed 4000
3) Erase chip, program & verify application (device uses ~3.2mA at 3v)
4) Run J-Link and execute reset script (device resets, but still uses ~3.2mA at 3v).
5) Close J-Flash (device uses ~5.4mA at 3v)
6) Disconnect J-Link Plus from target device (device uses ~2.0uA at 3v)
Test 3;
1) Connect J-Link Plus to target device
2) Start J-Flash, open nRF52832_xxAA device, SWD speed 4000
3) Erase chip, program & verify application (device uses ~3.2mA at 3v)
4) Run nrfjprog --reset (device resets and drops to ~28uA at 3v).
5) Close J-Flash. J-Link Error "Could not start CPU core" reported (device does not reset and remains using ~28uA at 3v)
6) Disconnect J-Link Plus from target device (device uses ~2.0uA at 3v)
The J-Flash behaviour on exit changes depending on whether J-Link has run while it is open. In Test 1, J-Flash does not reset the processor on exit and leaves it in a abnormal high power state. In Test 2, the J-Link reset does not achieve the low power state, but J-Flash does then reset the processor on exit.
I believe this inconsistent behaviour is somehow caused by the JLinkARM DLL as I see similar issues when using it through Pylink.
J-Link reset script
Device nRF52832_xxAAsi SWDspeed 4000resetgoexit