My devices require calibration and self test to be carried out after programming. To implement this, my device checks the JLink reset pin (configured as a GPIO on my NRF52 device) if it has been pulled low on startup - if it has, it performs calibration and self test.
In order to automate this process, I have implemented a script which takes the JLink reset pin high (using Jlink.exe command), performs a chip recovery by NRFJPROG, programs the chip by NRFJPROG, takes reset pin low (using JLink.exe) and then finally power cycles the board with a Python script written to interface with the Nordic PPK (at which point it performs self test and calibration).
Currently the calls to Jlink.exe, followed by nrfjprog and Jlink.exe result in establishing a new jlink connection with each call. This slows the script down. As I'd like to use this script in production, this script needs to be as fast as possible.
I was hoping to combine all the JLink commands (namely those in the nrfjprog program) into a single JLink script, so I only need to establish one connection to this JLink.
Is there a way to find out what jlink.exe commands are being sent by the nrfjprog.exe? I am particulary interested in the recover and programming commands.