Hi,
Aim
We're trying to use nrfjprog on our pre-production line which requires the following steps:
- Erase / Flash / Verify the program
- nrfjprog --clockspeed 8000 --verify --program {PATH} --chiperase --qspichiperase
- Set device id in UICR
- nrfjprog --memwr 0x10001080 --val XXXXX
- Disable debug control
- nrfjprog --memwr 0x10001210 --val 0xFFFF0000
- Disable the reset pin
- nrfjprog --memwr 0x10001200 --val 0xFFFFFFFF
- Turn on APPROTECT
- nrfjprog --memwr 0x10001208 --val 0xFFFFFF00
- Reset / reboot the uC
- nrfjprog --reset
This process is fine when using MacOS.
Problem
However when using Windows the device is resetting / rebooting after programming (stage 1). This causes issues due to the way the device self commissions on first boot, without the device id (stage 2).
We have the same issue when using nrfconnect programming app with "auto reset" off.
Attempts:
- This has been tested on two Window PCs with version 4.2.0.
- We've attempted to use an nrf52840 dev board and segger jlink as the programmer.
Do you have any suggestions?