nrf9160 Custom Board Programming Issue with Jlink

Hello-

I recently got a custom board made with a nrf9160 module and am having trouble programming it. This project was reviewed by your team (private case ID: 321889) and other members of our team (in another office) have been successful flashing their boards so I'm inclined to think it's an issue with my setup. Can you please help suss out what could be wrong and/or come up with other tests for me to try? I feel like I must be missing something simple.

I have a Jlink Base with an Olimex interface board which connects the Jlink to a 10-pin header on the custom board. I've installed the Jlink software package and nRF connect for desktop on my windows computer. When I open the 'Programmer' and try to connect to the Jlink, I can see it but when I try to connect to the device I get the following text output:

13:22:38.076
Initialising nrfutil module: device
13:22:41.098
Using nrfutil-device core version: 7.13.0
13:22:41.794
Using nrfutil-device version: 2.1.1
13:22:41.794
Using nrf-device-lib version: 0.17.5
13:22:41.795
Using nrfjprog DLL version: 10.24.0
13:22:41.795
Using JLink version: JLink_V7.94e
13:22:42.035
Getting serialport options from persistent store 000050105238.pc-nrfconnect-programmer
13:22:42.036
Getting serialport options from persistent store 0001.pc-nrfconnect-programmer
13:22:46.919
Using nrfutil device to communicate with target via JLink
13:22:48.705
Reading readback protection status for Application core
13:22:48.706
Failed "reading readback protection status for application core". Error: code: 9, description: Nrfjlink, message: Batch task protection-get failed, [jlink] JLINKARM_DLL_ERROR
13:22:48.855
Error: Failed with exit code 1. One or more batch tasks failed: - [jlink] JLINKARM_DLL_ERROR, code: Nrfjlink. Message: Batch task protection-get failed, [jlink] JLINKARM_DLL_ERROR.

I have done the following to try and find issues after reading various posts on similar issues:

  1. Checked that there is continuity from each of the pins on the Olimex to the custom board for VTref, SWDIO, SWDCLK, SWO, and nRESET
  2. Verified with a scope that there is data flowing on the SWDIO and SWDCLK lines
  3. Verified that the RESET line is at 2.2V and that it is briefly pulled low when a connection is attempted from the windows machine
  4. Verified that the custom board consumes ~1.7mA of current from the 10V power supply (17mW including voltage regulation, peripherals, etc...)
  5. Tried connecting with a different computer, same result

Other details:

  • The system runs on 3.3V
  • The custom board design was uploaded to Case 321889 (I do not want it to be published publicly). But here are the connections associated with the programmer:


Thank you so much!

Dave Y

Related