I'm programming a batch of 100 NRF52840 devices (new ISP1807-LR modules), and I'm unable to recover or program several of them. Most work fine, and I've never seen this issue until this batch. Does this sound like there is an error with the chips? Or would it point more towards the board/soldering?
Thanks for your help!
Here is the .bat file I'm using:
@echo off
cd C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin
echo Flashing bootloader...
nrfjprog --recover -f nrf52 --log
nrfjprog --program "itsybitsy_nrf52840_express_bootloader-0.8.0_s140_6.1.1.hex" -f nrf52 --chiperase --reset --log
echo Waiting for drive to appear...
:WAIT_FOR_DRIVE
if exist "E:\\" goto COPY_UF2
timeout /t 1 /nobreak >nul
goto WAIT_FOR_DRIVE
:COPY_UF2
echo Drive found! Copying UF2...
copy "C:\Users\Andrew\Documents\WARBL\WARBL2\UF2 files\current_firmware\WARBL2_firmware.uf2" E:\
echo Done!
And here is the printout:
Flashing bootloader...
Recovering device. This operation might take 30s.
[error] [ Client] - Encountered error -21: Command recover executed for 153 milliseconds with result -21
[error] [ Worker] - An unknown error.
ERROR: Recover failed. Please make sure that the correct device family is given
ERROR: and try again.
[error] [ Client] - Encountered error -102: Command read_device_info executed for 154 milliseconds with result -102
[error] [ Worker] - An unknown error.
[error] [ Client] - Encountered error -102: Command read_memory_descriptors executed for 60 milliseconds with result -102
Failed to read device memories.
[error] [ Worker] - An unknown error.
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.
Waiting for drive to appear...