Cannot flash custom board after upgrading to SDK 3.4 from 3.1.1 using nrfutil

Hello!

Sought out to upgrade from NRF SDK 3.1.1 to 3.4.0 today so downloaded and installed it on Mac using nrfutil sdk-manager command line, and that was fine.

The project I was working on still using 3.1.1, so in the meantime I needed to flash a custom PCB using my BL54L15 dev kit, as I have been for 18 months now. Since the install of 3.4, the flashing fails always with the same error:

Error: One or more batch tasks failed:
* 1059941208: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown Error in J-Link DLL (error code =-1)).

This might indicate that the debug port is unavailable. Please double-check device power supply and SWD lines, and that SWD isn't disabled (Generic)

FATAL ERROR: command exited with status 1: nrfutil --json device x-execute-batch --batch-path /Users/matthewruddy/Documents/Work/zephyr/tpms_device_3/build/generated_nrfutil_batch.json --serial-number 1059941208

* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.

I then attempted with identical boards, and same issue. So it's not board specific. I then removed the custom board and reinstalled the jumpers to flash the onboard NRF54, and that's working.

I then uninstalled 3.4.0 and reinstalled 3.1.1, and still stuck. Nothing I do seems to get this working. I've tried board recovery, checking voltages on the various programming pins, everything is checking out. I've also verified that the cable used to program my custom board works (it's a 2x5 Tag Connect).

I'm at a total loss and cannot push forwards.

AI helped me diagnose that 3.4.0 was using Segger 9+, where as I was previously using v8.66, so I uninstalled the latter and reinstalled v8.66. No dice.

I'm not sure if my dev kits programming firmware may have gotten updated and thus broken throughout this process? Honestly, I am unsure. Can you give any advice on where to begin? I've already lost a day to this.

Kind regards,

Matthew.

Related