nRF52840 DTM sample with NCS v2.0.2 and current (v4.3.0) nRfDesktop DTM

I am using an older NCS version v2.0.2 and need DTM for test purposes.  The sample DTM app seems to build and I can communicate with it using a terminal, so I know it compliles, flashes and executes on the target.  The target is an nRF52840 based Laird BL654 module. When I try to interact with it using the nRfDesktop (v4.3.0) it doesn's seem to communicate with the target and the nrfDesktop logs show the commands are all 0s, as in:

2023-12-11T19:54:48.967Z INFO Running device setup
2023-12-11T19:54:48.967Z DEBUG DTM Transport: Create setup CMD with control: 0
2023-12-11T19:54:48.967Z DEBUG DTM Transport: Create setup CMD with parameter: 0
2023-12-11T19:54:48.967Z DEBUG DTM Transport: Create setup CMD with dc type: 00
2023-12-11T19:54:48.967Z DEBUG DTM Transport: Sending data: 0x00 0x00
2023-12-11T19:54:48.977Z DEBUG DTM Transport: Unexpected data length:
2023-12-11T19:54:48.993Z DEBUG DTM Transport: Unexpected data length:
2023-12-11T19:54:49.010Z DEBUG DTM Transport: Unexpected data length:
2023-12-11T19:54:49.979Z INFO DTM setup reset command failed
2023-12-11T19:54:49.979Z INFO Can not communicate with the device. Make sure it is not in use by another application and that it has a Direct Test Mode compatible firmware.

I don't think this is expected behavior, have verified the target is operating, do I need a different version of desktop tool?  Why would all data be 0s?  Trying to get this going quickly for testiing.  Any thoughts on where this is going wrong?

BTW, running on Win11 with Zephyr SDK v0.14.2.  Using older NCS and Zephyr as that was current snapshot when prj started and don't have time or budget to upgrade to current but will backport a fix if really needed.

Henry

Parents Reply Children
  • I was able to get this to work using a terminal program that sends binary data (i used RealTerm) to control DTM.  Not sure why its not working with Nordic's tool.

  • Hello again, and sorry about the delay.

    hwagner said:
    I was unclear, that should be Zephyr toolchain v0.14.2, as reported by VS code

    Ah my mistake, that should've been obvious.

    I believe the Direct Test Mode app in nRF Connect for Desktop is not able to connect to other devices than a DK, but you could use a certified tester, a second DK, or a DTM terminal connection to test custom boards.

    Have you tried this with a DK? Are you getting the option of getting it flashed by the app itself when selecting it from the drop-down menu in the DTM App?

    Regards,

    Elfving

Related