Com port conflict ?

Using the nRF54L15 Development Board.

Did try to run the "nRF connect for desktop" - "Quick start"

I do not get a reply from the Board when doing one of the samples.

2024-12-10T09:42:19.544Z INFO Initialising the bundled nrfutil device
2024-12-10T09:42:19.630Z DEBUG Started watching devices
2024-12-10T09:42:22.854Z INFO Using the bundled core version for nrfutil device: 7.13.0
2024-12-10T09:42:23.670Z INFO Using nrfutil-device version: 2.7.5
2024-12-10T09:42:23.671Z INFO Using nrf-device-lib version: 0.17.41
2024-12-10T09:42:23.671Z INFO Using nrfjprog DLL version: 10.24.2
2024-12-10T09:42:23.671Z INFO Using JLink version: JLink_V7.94i
2024-12-10T09:42:27.625Z DEBUG Selected device: nRF54L15 DK
2024-12-10T09:42:27.654Z DEBUG Changed step: Info
2024-12-10T09:42:28.580Z DEBUG Changed step: Rename
2024-12-10T09:42:29.548Z DEBUG Changed step: Program
2024-12-10T09:42:42.828Z DEBUG Changed step: Verify
2024-12-10T09:42:45.854Z INFO Opened port with options: {"path":"COM7","baudRate":115200}
2024-12-10T09:42:51.139Z INFO Closed port: COM7

I earlier did a DTM test Image, and had the "Direct Test Mode" function work.

But later I did not success in getting any DTM build to work !

The Build is successful, but after flash (by visual studio code), the DTM application fail by

"cannot communicate with the device. Make Sure it is not in use by other application, that the correct serial port has been selected, and that it uses firmware with Direct Test Mode"

 I did also try to "recover" the board - same problem

  • Hi,

     

    Which version of the nRF54L15 DK do you have?

    From v2.8.0 and upwards, you need to have 0.8.x or newer.

    But later I did not success in getting any DTM build to work !

    The Build is successful, but after flash (by visual studio code), the DTM application fail by

    "cannot communicate with the device. Make Sure it is not in use by other application, that the correct serial port has been selected, and that it uses firmware with Direct Test Mode"

    Have you checked if there's any terminals open that is keeping the DTM from accessing the COM-port?

    Quick-Start for instance, this will grab the COM-port for logging purposes.

     

    Kind regards,

    Håkon

  • I did try to use "process explorer" to find windows process that reserve the serial port, but only found the expected DTM app (when running), so conclude it must be the board or SW flash into the board that are invalid.....

    Are there a way to low level factory reset the board ?
    it's version 0.8.1

  • Hi,

     

    The kit will enumerate two COM ports. Have you checked both COM ports when testing DTM?

    Here's the .hex file from a stock direct_test_mode in v2.8.0, compiled for the DK:

    DTM_2.8.0_nrf54l15dk_nrf54l15_cpuapp.hex

     

    This can be flashed using nrfjprog (or nRF Programmer app in nRF connect for desktop):

    nrfjprog --program DTM_2.8.0_nrf54l15dk_nrf54l15_cpuapp.hex --sectorerase --verify
    nrfjprog --reset

     

    Kind regards,

    Håkon

  • Hi

    I did try to flash (attached log file)

    1. Add File
    2. Connect Board
    3. Read
    4. Erase all
    5. Erase & Write

    And test the DTM (attached log file)

    But same issue !
    Does the logfiles indicate anything ?

    BR
    Henrik

    2024-12-13T10:19:41.874Z INFO Initialising the bundled nrfutil device
    2024-12-13T10:19:41.951Z DEBUG Application data folder: C:\Users\henh\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer
    2024-12-13T10:19:41.987Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:19:41.988Z DEBUG App pc-nrfconnect-programmer v4.4.2 (official)
    2024-12-13T10:19:41.988Z DEBUG App path: C:\Users\henh\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer
    2024-12-13T10:19:41.988Z DEBUG nRFConnect 5.1.0, required by the app is (>=5.0.2)
    2024-12-13T10:19:41.988Z DEBUG nRFConnect path: C:\Users\henh\AppData\Local\Programs\nrfconnect\resources\app.asar
    2024-12-13T10:19:41.988Z DEBUG HomeDir: C:\Users\henh
    2024-12-13T10:19:41.988Z DEBUG TmpDir: C:\Users\henh\AppData\Local\Temp
    2024-12-13T10:19:42.881Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:19:43.448Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:19:43.448Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:19:43.538Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:19:43.664Z INFO Using the bundled core version for nrfutil device: 7.13.0
    2024-12-13T10:19:44.363Z INFO Using nrfutil-device version: 2.6.4
    2024-12-13T10:19:44.364Z INFO Using nrf-device-lib version: 0.17.35
    2024-12-13T10:19:44.364Z INFO Using nrfjprog DLL version: 10.24.2
    2024-12-13T10:19:44.364Z INFO Using JLink version: JLink_V7.94i
    2024-12-13T10:19:44.812Z INFO Getting serial port options from the persistent store for 001057731758.pc-nrfconnect-programmer
    2024-12-13T10:19:44.813Z INFO Getting serial port options from the persistent store for D30DF4955397.pc-nrfconnect-programmer
    2024-12-13T10:19:44.814Z DEBUG Sending event "programmer: device connected"
    2024-12-13T10:19:44.814Z DEBUG Sending event "programmer: device connected"
    2024-12-13T10:19:55.578Z INFO Selecting device with the serial number 001057731758
    2024-12-13T10:19:55.648Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:19:57.486Z INFO Selected device with the serial number 001057731758
    2024-12-13T10:19:57.486Z INFO Using nrfutil device to communicate with target via JLink
    2024-12-13T10:19:57.486Z INFO JLink OB firmware version J-Link OB-nRF5340-NordicSemi compiled Oct  9 2024 11:01:34
    2024-12-13T10:19:57.486Z INFO Device family NRF54L_FAMILY
    2024-12-13T10:19:57.486Z INFO Device version NRF54L15_xxAA_ENGB
    2024-12-13T10:19:57.486Z INFO Board version PCA10156
    2024-12-13T10:19:57.558Z DEBUG Sending event "programmer: device selected"
    2024-12-13T10:19:57.558Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:19:57.949Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:19:59.560Z INFO Reading readback protection status for Application core
    2024-12-13T10:19:59.560Z INFO Reading readback protection status for Application core 0%
    2024-12-13T10:19:59.573Z INFO Reading readback protection status for Application core 100%
    2024-12-13T10:19:59.574Z INFO Application core protection status 'NRFDL_PROTECTION_STATUS_NONE'
    2024-12-13T10:19:59.574Z INFO Reading readback protection status for Application core completed
    2024-12-13T10:20:00.031Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:00.031Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:00.031Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:00.585Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:02.219Z INFO Loading core information for Application core
    2024-12-13T10:20:02.220Z INFO Loading core information for Application core 0%
    2024-12-13T10:20:02.227Z INFO Loading core information for Application core 100%
    2024-12-13T10:20:02.228Z INFO Loading core information for Application core completed
    2024-12-13T10:20:02.228Z INFO Reading memory for Application core
    2024-12-13T10:20:02.442Z ERROR Error: Failed with exit code 1.
    One or more batch tasks failed:
     - [Probe] The fw-read operation is not supported, code: Generic.
    Message: Batch task fw-read failed, [Probe] The fw-read operation is not supported.
    2024-12-13T10:20:02.443Z ERROR Error: Failed with exit code 1.
    One or more batch tasks failed:
     - [Probe] The fw-read operation is not supported, code: Generic.
    Message: Batch task fw-read failed, [Probe] The fw-read operation is not supported.
    2024-12-13T10:20:10.833Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:12.872Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:13.273Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:14.877Z INFO Reading memory for Application core
    2024-12-13T10:20:15.128Z ERROR Error: Failed with exit code 1.
    One or more batch tasks failed:
     - [Probe] The fw-read operation is not supported, code: Generic.
    Message: Batch task fw-read failed, [Probe] The fw-read operation is not supported.
    2024-12-13T10:20:27.719Z INFO Parsing HEX file:  C:\Users\henh\Downloads\DTM_2.8.0_nrf54l15dk_nrf54l15_cpuapp.hex
    2024-12-13T10:20:27.722Z INFO File was last modified at  12/13/2024, 11:11:45 AM
    2024-12-13T10:20:27.736Z INFO Update files regions according to Application core
    2024-12-13T10:20:27.736Z INFO Parse memory regions for file
    2024-12-13T10:20:37.095Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:39.386Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:39.386Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:39.386Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:39.386Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:40.599Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:42.256Z INFO Recovering Application core
    2024-12-13T10:20:42.257Z INFO Recovering Application core 0%
    2024-12-13T10:20:42.460Z INFO Recovering Application core 100%
    2024-12-13T10:20:42.462Z INFO Recovering Application core completed
    2024-12-13T10:20:42.464Z INFO Reading memory for Application core
    2024-12-13T10:20:42.653Z ERROR Error: Failed with exit code 1.
    One or more batch tasks failed:
     - [Probe] The fw-read operation is not supported, code: Generic.
    Message: Batch task fw-read failed, [Probe] The fw-read operation is not supported.
    2024-12-13T10:20:47.853Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:50.308Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:50.308Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:50.308Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:50.308Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:50.309Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:50.681Z DEBUG Sending event "programmer: running nrfutil device"
    2024-12-13T10:20:52.343Z INFO Recovering Application core
    2024-12-13T10:20:52.343Z INFO Recovering Application core 0%
    2024-12-13T10:20:52.475Z INFO Recovering Application core 100%
    2024-12-13T10:20:52.475Z INFO Recovering Application core completed
    2024-12-13T10:20:52.477Z INFO Writing HEX to Application core
    2024-12-13T10:20:52.499Z INFO Writing HEX to Application core 0%
    2024-12-13T10:20:52.523Z INFO Writing HEX to Application core 50%
    2024-12-13T10:20:52.523Z INFO Writing HEX to Application core 50%
    2024-12-13T10:20:52.955Z INFO Writing HEX to Application core 100%
    2024-12-13T10:20:52.955Z INFO Writing HEX to Application core 50%
    2024-12-13T10:20:52.956Z INFO Writing HEX to Application core 100%
    2024-12-13T10:20:52.960Z INFO Writing HEX to Application core completed
    2024-12-13T10:20:52.961Z INFO Reading memory for Application core
    2024-12-13T10:20:53.174Z ERROR Error: Failed with exit code 1.
    One or more batch tasks failed:
     - [Probe] The fw-read operation is not supported, code: Generic.
    Message: Batch task fw-read failed, [Probe] The fw-read operation is not supported.
    
    2024-12-13T10:17:10.539Z INFO Initialising the bundled nrfutil device
    2024-12-13T10:17:10.628Z DEBUG Application data folder: C:\Users\henh\AppData\Roaming\nrfconnect\pc-nrfconnect-dtm
    2024-12-13T10:17:10.669Z DEBUG Sending event "dtm: running nrfutil device"
    2024-12-13T10:17:10.669Z DEBUG App pc-nrfconnect-dtm v2.4.2 (official)
    2024-12-13T10:17:10.669Z DEBUG App path: C:\Users\henh\.nrfconnect-apps\node_modules\pc-nrfconnect-dtm
    2024-12-13T10:17:10.670Z DEBUG nRFConnect 5.1.0, required by the app is (>=5.0.1)
    2024-12-13T10:17:10.670Z DEBUG nRFConnect path: C:\Users\henh\AppData\Local\Programs\nrfconnect\resources\app.asar
    2024-12-13T10:17:10.670Z DEBUG HomeDir: C:\Users\henh
    2024-12-13T10:17:10.670Z DEBUG TmpDir: C:\Users\henh\AppData\Local\Temp
    2024-12-13T10:17:11.572Z DEBUG Sending event "dtm: running nrfutil device"
    2024-12-13T10:17:12.276Z DEBUG Sending event "dtm: running nrfutil device"
    2024-12-13T10:17:12.276Z DEBUG Sending event "dtm: running nrfutil device"
    2024-12-13T10:17:12.368Z DEBUG Sending event "dtm: running nrfutil device"
    2024-12-13T10:17:13.600Z INFO Getting serial port options from the persistent store for D30DF4955397.pc-nrfconnect-dtm
    2024-12-13T10:17:13.601Z INFO Getting serial port options from the persistent store for 001057731758.pc-nrfconnect-dtm
    2024-12-13T10:17:13.602Z DEBUG Sending event "dtm: device connected"
    2024-12-13T10:17:13.603Z DEBUG Sending event "dtm: device connected"
    2024-12-13T10:17:13.673Z INFO Using the bundled core version for nrfutil device: 7.13.0
    2024-12-13T10:17:14.041Z INFO Using nrfutil-device version: 2.6.4
    2024-12-13T10:17:14.041Z INFO Using nrf-device-lib version: 0.17.35
    2024-12-13T10:17:14.042Z INFO Using nrfjprog DLL version: 10.24.2
    2024-12-13T10:17:14.042Z INFO Using JLink version: JLink_V7.94i
    2024-12-13T10:17:15.481Z INFO Selecting device with the serial number 001057731758
    2024-12-13T10:17:15.560Z DEBUG Sending event "dtm: running nrfutil device"
    2024-12-13T10:17:17.405Z INFO Selected device with the serial number 001057731758
    2024-12-13T10:17:17.405Z INFO No firmware defined for selected device
    2024-12-13T10:17:17.405Z INFO Please make sure the device has been programmed with a supported firmware
    2024-12-13T10:17:17.406Z INFO Connected to device with the serial number 001057731758 and family: NRF54L_FAMILY 
    2024-12-13T10:17:17.406Z INFO Note: no pre-compiled firmware is available for the selected device. You may still use the app if you have programmed the device with a compatible firmware.
    2024-12-13T10:17:17.406Z INFO Device selected successfully
    2024-12-13T10:17:17.407Z DEBUG Sending event "dtm: device selected"
    2024-12-13T10:17:18.673Z INFO Running device setup
    2024-12-13T10:17:18.673Z DEBUG DTM Transport: Create setup CMD with control: 0
    2024-12-13T10:17:18.673Z DEBUG DTM Transport: Create setup CMD with parameter: 0
    2024-12-13T10:17:18.673Z DEBUG DTM Transport: Create setup CMD with dc type: 00
    2024-12-13T10:17:18.686Z DEBUG DTM Transport: Serialport is opened
    2024-12-13T10:17:18.687Z DEBUG DTM Transport: Succeeded to open serialport
    2024-12-13T10:17:18.687Z DEBUG DTM Transport: Sending data: 0x00 0x00
    2024-12-13T10:17:19.690Z INFO DTM setup reset command failed
    2024-12-13T10:17:19.690Z INFO Cannot communicate with the device. Make sure it is not in use by another application, that the correct serial port has been selected, and that it uses firmware compatible with Direct Test Mode.
    

  • Hi,

     

    For some reason, you are failing to flash properly:

    ...
    2024-12-13T10:20:53.174Z ERROR Error: Failed with exit code 1.
    One or more batch tasks failed:
     - [Probe] The fw-read operation is not supported, code: Generic.
    Message: Batch task fw-read failed, [Probe] The fw-read operation is not supported.

     This is how a successful log looks:

    13:56:16.220	Initialising the bundled nrfutil device
    13:56:16.564	Using the bundled core version for nrfutil device: 7.13.0
    13:56:16.681	Using nrfutil-device version: 2.6.4
    13:56:16.681	Using nrf-device-lib version: 0.17.35
    13:56:16.681	Using nrfjprog DLL version: 10.24.2
    13:56:16.681	Using JLink version: JLink_V8.10f
    13:56:16.681	Installed JLink version does not match the expected version (JLink_V7.94i)
    13:56:16.739	Getting serial port options from the persistent store for 001057721462.pc-nrfconnect-programmer
    13:56:33.053	Parsing HEX file: /home/hkn/Downloads/DTM_2.8.0_nrf54l15dk_nrf54l15_cpuapp.hex
    13:56:33.075	File was last modified at 12/13/2024, 1:56:28 PM
    13:56:33.091	Update files regions according to Application core
    13:56:33.091	Parse memory regions for file
    13:56:37.064	Selecting device with the serial number 001057721462
    13:56:37.529	Selected device with the serial number 001057721462
    13:56:37.529	Using nrfutil device to communicate with target via JLink
    13:56:37.529	JLink OB firmware version J-Link OB-nRF5340-NordicSemi compiled Oct 9 2024 11:01:34
    13:56:37.529	Device family NRF54L_FAMILY
    13:56:37.529	Device version NRF54L15_xxAA_ENGB
    13:56:37.529	Board version PCA10156
    13:56:37.539	Update files regions according to Application core
    13:56:37.539	Parse memory regions for file
    13:56:37.869	Reading readback protection status for Application core
    13:56:37.870	Reading readback protection status for Application core 0%
    13:56:37.883	Reading readback protection status for Application core 100%
    13:56:37.883	Application core protection status 'NRFDL_PROTECTION_STATUS_NONE'
    13:56:37.884	Reading readback protection status for Application core completed
    13:56:38.389	Loading core information for Application core
    13:56:38.391	Loading core information for Application core 0%
    13:56:38.393	Update files regions according to Application core
    13:56:38.393	Parse memory regions for file
    13:56:38.397	Loading core information for Application core 100%
    13:56:38.398	Loading core information for Application core completed
    13:56:38.399	Update files regions according to Application core
    13:56:38.399	Parse memory regions for file
    13:56:38.881	Reading readback protection status for Application core
    13:56:38.881	Reading readback protection status for Application core 0%
    13:56:38.892	Reading readback protection status for Application core 100%
    13:56:38.892	Application core protection status 'NRFDL_PROTECTION_STATUS_NONE'
    13:56:38.893	Reading readback protection status for Application core completed
    13:56:39.032	Device is loaded and ready for further operation
    13:56:41.191	Recovering Application core
    13:56:41.192	Recovering Application core 0%
    13:56:41.418	Recovering Application core 100%
    13:56:41.419	Recovering Application core completed
    13:56:41.419	Writing HEX to Application core
    13:56:41.449	Writing HEX to Application core 0%
    13:56:41.473	Writing HEX to Application core 50%
    13:56:41.473	Writing HEX to Application core 50%
    13:56:41.909	Writing HEX to Application core 100%
    13:56:41.909	Writing HEX to Application core 50%
    13:56:41.909	Writing HEX to Application core 100%
    13:56:41.914	Writing HEX to Application core completed
    13:56:41.914	Loading core information for Application core
    13:56:41.917	Update files regions according to Application core
    13:56:41.917	Parse memory regions for file
    13:56:41.922	Loading core information for Application core 0%
    13:56:41.923	Loading core information for Application core 100%
    13:56:41.923	Loading core information for Application core completed
    13:56:41.925	Update files regions according to Application core
    13:56:41.926	Parse memory regions for file
    13:56:42.861	Reading readback protection status for Application core
    13:56:42.861	Reading readback protection status for Application core 0%
    13:56:42.873	Reading readback protection status for Application core 100%
    13:56:42.874	Application core protection status 'NRFDL_PROTECTION_STATUS_NONE'
    13:56:42.875	Reading readback protection status for Application core completed

    Can you try to program with nrfjprog via cmd prompt?

     

    If that also fails, add a "--log" and upload the failure log here.

     

    Kind regards,

    Håkon

Related