Please note that I am a new developer.
I am currently testing on a nRF52 DK on Windows.
I want to flash my application (which has a SoftDevice) and also write manufacturing information such as serial number to the UICR (customer reserved) registers.
I have tried using the method described in the UICR Config Example where Keil uVision is modified to write to UICR. This method works, but is not desirable. I want to use a Flasher ATE (JLink flash programmer) to flash each of my devices during production.
I have seen in some threads that it is possible to write to the UICR using nrfjprog as such:
nrfjprog --memwr 0x10001304 --val 0x00000000
Is the best method to use nrfjprog and write to each individual UICR address and then to flash the application and SoftDevice? Or perhaps it is more efficient to produce a single .hex file (using mergehex) where UICR registers are already written.
My question is: what is the most efficient way to write to the UICR registers during production?
Thanks for any help!