[nrfutil device command] Issue on writing nrf54l15 UICR->OTP registers using batch file

Hi,

i am developing under ncs 3.2.3 (then toolcahin 3.2.3 -> nrfutil-device 2.17.1).

FLashig OTP registers using batch method, i am getting the following "error" on nrf54l15dk(rev. 0.9.2):

The operation is either not supported
[00:00:00] ###### 100% [] Batch failed, The operation you tried to run is not available for the selected device.

The operation is either not supported
Error: One or more batch tasks failed:
* 002000423538511733363730: The operation you tried to run is not available for the selected device.

The operation is either not supported for this type of device or the device has issues and it cannot be recognized (NotFound)
* C631D7A3650B: The operation you tried to run is not available for the selected device.

The operation is either not supported for this type of device or the device has issues and it cannot be recognized (NotFound)
* D30F30I2: The operation you tried to run is not available for the selected device.

The operation is either not supported for this type of device or the device has issues and it cannot be recognized (NotFound)

However it seems that OTPs are correctly written (proper value are loaded in fw)

Can you help me?

Thanks,

Alessandro

Parents
  • Hi Alessandro,

    Hmm, If the operation failed and the OTPs are correctly written, then this seems to be bug in error handling in the tool. 
    Can you please help us reproduce this?

  • {
      "nrfutil_device_version": "2.17.1",
      "operations": [
        {
          "core": "NRFDL_DEVICE_CORE_APPLICATION",
          "operation": {
            "address": "0xffd980",
            "data": [
              77,
              0,
              0,
              0
            ],
            "direct": false,
            "type": "memory-write"
          }
        },
        {
          "core": "NRFDL_DEVICE_CORE_APPLICATION",
          "operation": {
            "address": "0xffd984",
            "data": [
              70,
              68,
              0,
              0
            ],
            "direct": false,
            "type": "memory-write"
          }
        },
        {
          "core": "NRFDL_DEVICE_CORE_APPLICATION",
          "operation": {
            "address": "0xffd988",
            "data": [
              1,
              0,
              0,
              0
            ],
            "direct": false,
            "type": "memory-write"
          }
        },
        {
          "core": "NRFDL_DEVICE_CORE_APPLICATION",
          "operation": {
            "address": "0xffd98c",
            "data": [
              1,
              0,
              0,
              0
            ],
            "direct": false,
            "type": "memory-write"
          }
        }
      ]
    }
    If you run the attached batchfile.json on nrf shell terminal you should get the errors:

    • nrfutil device batch-execute --batch-path .\batchfile.json

    [00:00:00] ###### 100% [4/4 1057737707] Batch completed
    [00:00:00] ###### 100% [] Batch failed, The operation you tried to run is not available for the selected
    [00:00:00] ###### 100% [] Batch failed, The operation you tried to run is not available for the selected
    [00:00:00] ###### 100% [] Batch failed, The operation you tried to run is not available for the selectedError: One or more batch tasks failed:
    * C631D7A3650B: The operation you tried to run is not available for the selected device.

    The operation is either not supported for this type of device or the device has issues and it cannot be recognized (NotFound)
    * D30F30I2: The operation you tried to run is not available for the selected device.

    The operation is either not supported for this type of device or the device has issues and it cannot be recognized (NotFound)
    * 3BBAF401F8CA1B1B: The operation you tried to run is not available for the selected device.

    The operation is either not supported for this type of device or the device has issues and it cannot be recognized (NotFound)

    The UICR.OTP slot written are:

    • 288
    • 289
    • 290
    • 291
  • I tried your batch file on my macbook with only nRf54L DK connected and did not see any errors.

    it looks like the OTP write itself is succeeding and the error is coming afterwards from nrfutil device trying to execute the same batch on additional detected devices/plugins that do not support this operation.

    I would suggest trying the batch against one explicitly selected device instead of letting the nrfutil act on all detected targets

    Can you try

    nrfutil device list
    nrfutil device batch-execute --serial-number <your-dk-serial> --batch-path .\batchfile.json
    

    Also disconnect unrelated USB devices and retry, as nrfutil-device enumeration can sometimes include extra devices that are not valid targets.

  • Doing as you sggest works perfectly....also simply using "--traits jlink" works.

    However i found the guilty device: stm32 stlink v3-mini programmer!

  • That makes sense based on the logs. glad that it worked.

Reply Children
No Data
Related