Cannot reset or erase nRF54L15 DK

Hi

 

I have two nRF54L15 DK boards (PCA10156).

Both are behaving the same way right now.

.......................................

ONE: Using nRFConnect in VSCode, I cannot flash the device:

 

.......................................

Flashing myproj to nRF54L15 DK

west flash -d c:\dev\myproj\build --domain myproj --dev-id 105776****

 

-- west flash: rebuilding

[0/5] Performing build step for 'myproj'

ninja: no work to do.

[4/5] cmd.exe /C "cd /D C:\dev\myproj\build\_sysbuild && C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe -E true"

-- west flash: using runner nrfutil

-- runners.nrfutil: reset after flashing requested

-- runners.nrfutil: Flashing file: C:\dev\myproj\build\merged.hex

Error: One or more batch tasks failed:

 * 105776****: Timed out waiting for response from worker. (Generic)

 

FATAL ERROR: command exited with status 1: nrfutil --json device x-execute-batch --batch-path 'C:\dev\myproj\build\generated_nrfutil_batch.json' --serial-numb

er 105776****

 

 *  The terminal process terminated with exit code: 1.

 *  Terminal will be reused by tasks, press any key to close it.

 

.......................................

TWO: Trying to recover the device, times out:

.......................................

PS C:\dev\myproj\build\myproj>

PS C:\dev\myproj\build\myproj> nrfutil self-upgrade

nrfutil is already the newest version (8.1.1)

PS C:\dev\myproj\build\myproj>

PS C:\dev\myproj\build\myproj> nrfutil upgrade

nrfutil-device is already the newest version (2.14.0)

[00:00:00] ###### 100% [Upgrade packages] Upgrade packages

PS C:\dev\myproj\build\myproj> nrfutil device recover

x Failed to recover 1057705837, Timed out waiting for response from worker.

Error: One or more recover tasks failed:

 * 1057705837: Timed out waiting for response from worker. (Generic)

 

PS C:\dev\myproj\build\myproj>

 

.......................................

THREE: Using nRF Connect for Desktop - Programmer, and selecting Erase All:

.......................................

22:18:00.270    Selecting device with the serial number 00105776****

22:18:14.582    Error: Failed with exit code 1. One or more device info tasks failed: * 105776****: Timed out waiting for response from worker. (Generic) Message: Operation device-info failed, Timed out waiting for response from worker.

22:18:14.582    Selected device with the serial number 00105776****

22:18:14.583    Using nrfutil device to communicate with target via JLink

22:18:16.894    Error: Failed with exit code 1. One or more device info tasks failed: * 105776****: Timed out waiting for response from worker. (Generic) Message: Operation device-info failed, Timed out waiting for response from worker.

22:18:17.556    Device connected with the serial number 00105776****

22:18:17.692    Reading readback protection status for Application core

22:18:17.693    Failed "reading readback protection status for application core". Error: code: 1, description: Generic, message: Batch task protection-get failed, Emulator error: Failed to open connection

22:18:17.714    Error: Failed with exit code 1. One or more batch tasks failed: * 105776****: Emulator error: Failed to open connection (Generic) Message: Batch task protection-get failed, Emulator error: Failed to open connection.

22:18:17.714    Error: Failed with exit code 1. One or more batch tasks failed: * 105776****: Emulator error: Failed to open connection (Generic) Message: Batch task protection-get failed, Emulator error: Failed to open connection.

22:18:17.800    Reading readback protection status for Application core

22:18:17.800    Failed "reading readback protection status for application core". Error: code: 1, description: Generic, message: Batch task protection-get failed, Emulator error: Failed to open connection

22:18:17.807    Error: Failed with exit code 1. One or more batch tasks failed: * 105776****: Emulator error: Failed to open connection (Generic) Message: Batch task protection-get failed, Emulator error: Failed to open connection.

22:18:18.621    Getting serial port options from the persistent store for 00105776****.pc-nrfconnect-programmer

22:18:18.621    Device connected with the serial number 00105776****

 

 

.......................................

FOUR: Using nRF Connect for Desktop - Programmer, and selecting Reset:

 .......................................

22:18:56.040    Error: Aborted before start executing nrfutil ["device","device-info","--serial-number","00105776****","--json","--log-output=stdout","--log-level","off"]

22:18:56.099    Error: Aborted before start executing nrfutil ["device","x-execute-batch","--serial-number","00105776****","--batch-json","{\"operations\":[{\"operationId\":\"0\",\"core\":\"NRFDL_DEVICE_CORE_APPLICATION\",\"operation\":{\"type\":\"protection-get\"}}]}","--json","--log-output=stdout","--log-level","off"]

22:19:05.174    Error: Failed with exit code 1. One or more device info tasks failed: * 105776****: Timed out waiting for response from worker. (Generic) Message: Operation device-info failed, Timed out waiting for response from worker.

22:19:05.174    Selected device with the serial number 00105776****

22:19:05.174    Using nrfutil device to communicate with target via JLink

22:19:08.159    Device connected with the serial number 00105776****

22:19:08.298    Reading readback protection status for Application core

22:19:08.299    Failed "reading readback protection status for application core". Error: code: 1, description: Generic, message: Batch task protection-get failed, Emulator error: Failed to open connection

22:19:08.322    Error: Failed with exit code 1. One or more batch tasks failed: * 105776****: Emulator error: Failed to open connection (Generic) Message: Batch task protection-get failed, Emulator error: Failed to open connection.

22:19:08.322    Error: Failed with exit code 1. One or more batch tasks failed: * 105776****: Emulator error: Failed to open connection (Generic) Message: Batch task protection-get failed, Emulator error: Failed to open connection.

22:19:09.285    Getting serial port options from the persistent store for 00105776****.pc-nrfconnect-programmer

22:19:09.285    Device connected with the serial number 00105776****

 

.......................................

History:

.......................................

I think I tried to flash the DK with a project I was working on. It originally was for a different board file, so I created a build config for the nRF54L15DK, then removed a lot of the application code so that it would build. Then I flash ed the DK, and the device seemed to run  - I was able run a BLE scan and see it. I can only thin that there was something wrong with the application that messed things up.

Then the next time (I think), it wouldn’t flash - I think I was trying to run it in debug mode.

I am guessing I eventually tried the 2nd DK - which probably worked the first time, although I am guessing.

SO I then created a new project from the BLE Peripheral UART sample, for the nRF54L15DK.

All the build configs above were for SDK/Toolchain 2.9.2

 

.......................................

Question: How can I recover these devices?

.......................................

Thanks

Parents
  • Hi

    Both device have been successfully recovered.

    I reverted to the older nrfjproj utility.
    I don’t know why this worked and nrfutils wouldn't.

    This is how I recovered both devices

    First, I got the serial number:

    nrfjprog --ids

    Then I did the following.

    nrfjprog --recover --snr 105776****
    nrfjprog --eraseall --snr 105776****
    nrfjprog --reset --snr 105776****

    Note: Sometimes the recover script would take about 30 seconds to complete.

  • Hi Garrett,

    Maybe it's because the OBD firmware is not up to date. You might be able to recover the board, by opening Jlink Commander, the OBD FW might be in bootloader mode, and then opening JLink Commander might give you a prompt to program the OBD FW again.

    -Priyanka

Reply Children
Related