Hi
I use the following script to program my boards which takes 20 to 30 seconds to complete. But recovery and programming done through SES for the same code is much faster and completes within 5 seconds. The nRF52 DK is used as a SWD programmer.
echo STARTTIME %Time% nrfjprog --recover -f NRF52 nrfjprog --program myprogram.hex --verify --chiperase -f NRF52 nrfjprog --pinresetenable nrfjprog --rbp ALL --family NRF52 nrfjprog --pinreset echo ENDTIME %Time%
I also tried setting the --clockspeed to 4000 but it didn't help. I saw that SES runs some scripts like InitTarget() and TargetInterface.resetAndStop() but couldn't find much info about them.
I'd like to know how SES achieves faster programming and how to achieve similar programming speeds using command line tools like nrfjprog. Involving a third party to pre-program the units isn't an option.