Intro
We are using the nRF9160 with sensors we manufacture. The code developed is based on the serial SLM sample, toolchain v1.6.0. I am trying to keep the code/project files the same.
nRF Connect v5.0.2
Programmer v4.4.2
Tool Chain v1.6.0
Windows 10 Pro workstation.
Visual Code IDE.
Problem Source:
I opened nRF desktop on my development station and when prompted to "upgrade" I made the mistake of clicking YES. The upgrade was from v5.0.2 to the latest. New Segger software was installed and since then I cannot program any of our nRF9160 products. The nRF Programmer reads the device and shows "unknown_family". On occasion it will read Device version NRF9160_xxAA_REV2. Trying to program, erase or reset the device, will cause the error message below.
Error Message
With the new version I got "Error: Failed with exit code 1. No devices with requested serial number(s) or trait(s) found.".
Second PC
The update changed the firmware in the J-Link. I tried using the J-Link on a production PC and got the same error.
Attempted Fixes over 2 days:
1. I uninstalled all Segger and nRF software
2. Installed nRF Connect version v5.0.2.
3. rebooted.
4. replaced the firmware in the segger J-Link, using JLinkConfig.exe. The J-Link now works on a second station, but not on my PC.
5. repeated step 1, 3 above, removed all nRF drivers using pnputil.exe -f -d oemX.inf
6. Repeat step 5, using different Segger software versions.
Output from Programmer (when it read the device family)
10:19:52.603 Initialising the bundled nrfutil device
10:19:54.672 Using the bundled core version for nrfutil device: 8.1.0
10:19:55.277 Using nrfutil-device version: 2.6.4
10:19:55.277 Using nrf-device-lib version: 0.17.35
10:19:55.277 Using nrfjprog DLL version: 10.24.2
10:19:55.277 Using JLink version: JLink_V7.94e
10:19:55.278 Installed JLink version does not match the expected version (JLink_V7.94i)
10:20:19.996 Getting serial port options from the persistent store for 000602004511.pc-nrfconnect-programmer
10:20:23.474 Selecting device with the serial number 000602004511
10:20:25.607 Selected device with the serial number 000602004511
10:20:25.608 Using nrfutil device to communicate with target via JLink
10:20:25.608 JLink OB firmware version J-Link V12 compiled Feb 20 2025 16:24:27
10:20:25.608 Device family
10:20:25.608 Device version NRF9160_xxAA_REV2
10:20:25.608 Board version
10:20:27.505 Reading readback protection status for Application core
10:20:27.506 Reading readback protection status for Application core 0%
10:20:27.511 Reading readback protection status for Application core 100%
10:20:27.513 Application core protection status 'NRFDL_PROTECTION_STATUS_NONE'
10:20:27.513 Reading readback protection status for Application core completed
10:20:29.841 Loading core information for Application core
10:20:29.842 Loading core information for Application core 0%
10:20:29.858 Loading core information for Application core 100%
10:20:29.859 Loading core information for Application core completed
10:20:32.084 Reading readback protection status for Application core
10:20:32.085 Reading readback protection status for Application core 0%
10:20:32.088 Reading readback protection status for Application core 100%
10:20:32.088 Application core protection status 'NRFDL_PROTECTION_STATUS_NONE'
10:20:32.089 Reading readback protection status for Application core completed
10:20:32.420 Device is loaded and ready for further operation
10:20:38.446 Update files regions according to Application core
10:20:38.446 Parse memory regions for file
10:20:38.449 Checking ZIP file: H:\nrf\_modem_firmware_9160\mfw_nrf9160_1.3.5.zip
10:20:38.467 File was last modified at 10/26/2023, 10:31:30 PM
10:20:52.547 Update files regions according to Application core
10:20:52.548 Parse memory regions for file
10:21:14.641 Modem DFU starts to write...
10:21:14.641 Writing H:\nrf\_modem_firmware_9160\mfw_nrf9160_1.3.5.zip to device 000602004511
10:21:23.489 Modem DFU failed with error: Error: Failed with exit code 1. No devices with requested serial number(s) or trait(s) found.