nrfutil CLI issues

Hi,

I'm working on a testbench to flash product with nRF5340 and nRF52840 chips.

In order to erase/flash both I'm using JLink Base compact and nrfutils CLI. But I have fews issues:

  •  Sometimes, the JLink didn't reset successfully (led switch to orange) and the next command line will fail with the error code: [jlink] JLINKARM_DLL_ERROR, code: Nrfjlink
    • Below the output of the command performed few times in a row where we can se that sometimes operations ends without issue and sometimes error is raised
      > rfutil.exe device recover --serial-number 822007655 --x-family nrf53
      v Recovered 822007655
      
      > nrfutil.exe device recover --serial-number 822007655 --x-family nrf53
      x Failed to recover 822007655, [jlink] JLINKARM_DLL_ERROR
      Error: One or more recover tasks failed:
       * 822007655: [jlink] JLINKARM_DLL_ERROR, code: Nrfjlink
      
      
      >rfutil.exe device recover --serial-number 822007655 --x-family nrf53
      v Recovered 822007655
  • Commands runnning forever. In some case operation doesn't stop and the only solution is to disconnect/reconnect the JLink. Is there a way to use timeout as parameters in the command lines ? I didn't find topic about that
  • JLink not found with nrfutil:
    • >./nrfutil.exe device list
      
      FTDPOE5G
      product         TTL232R-3V3
      ports           COM24
      traits          serialPorts, usb
      
      FTDPOGGJ
      product         TTL232R-3V3
      ports           COM21
      traits          serialPorts, usb
      
      777641824
      product         J-Link
      ports           COM20
      traits          jlink, seggerUsb, serialPorts, usb
    • Here we can see that only one JLink is find while 2 are connected as shown with J-Link Configurator

Any helps on this topics will be appreciated !

Below are some details:

  • nrfutils --version
    • nrfutil 7.12.0 (39003c9 2024-06-10)
    • commit-hash: 39003c9d0e5d946af0f417cfadf4ac55a6d03c19
    • commit-date: 2024-06-10
    • host: x86_64-pc-windows-msvc
    • build-timestamp: 2024-06-10T15:56:55.227746900Z
    • classification: nrf-external
  • SEGGER Tools version V8.12d

I was initialy running the command line in python with subprocess.Popen where I first saw the issues and I was able to reproduce the errors using usual consol (MobaXTerm)

Best regards,

Antoine

Related