DTM setup reset command failed

I opened the direct_test_mode sample from Toolchain version 2.3.0 and built with the default settings (nrf5340dk_nrf5340_cpunet as the board and "Use build system default"). Then I flashed the firmware on the 5340DK and the - Direct Test Mode app on Windows 10 can select the device, but not communicate with it. I've attached the log and a screenshot here of the flashing commands.

If I edit the build configuration to prj.conf then I get the error below:

2023-07-10T22:28:25.615Z DEBUG Application data folder: C:\Users\bshelton\AppData\Roaming\nrfconnect\pc-nrfconnect-dtm
2023-07-10T22:28:25.677Z INFO Using nrf-device-lib-js version: 0.4.13
2023-07-10T22:28:25.677Z INFO Using nrf-device-lib version: 0.12.8
2023-07-10T22:28:25.677Z INFO Using nrfjprog DLL version: 10.16.0
2023-07-10T22:28:25.677Z INFO Using JLink version: JLink_V7.88g
2023-07-10T22:28:25.690Z DEBUG App pc-nrfconnect-dtm v2.0.3 official
2023-07-10T22:28:25.690Z DEBUG App path: C:\Users\bshelton\.nrfconnect-apps\node_modules\pc-nrfconnect-dtm
2023-07-10T22:28:25.691Z DEBUG nRFConnect 3.12.0, required by the app is (^3.12.0)
2023-07-10T22:28:25.691Z DEBUG nRFConnect path: C:\Users\bshelton\AppData\Local\Programs\nrfconnect\resources\app.asar
2023-07-10T22:28:25.691Z DEBUG HomeDir: C:\Users\bshelton
2023-07-10T22:28:25.691Z DEBUG TmpDir: C:\Users\bshelton\AppData\Local\Temp
2023-07-10T22:28:25.692Z INFO Installed JLink version does not match the provided version (V7.66a)
2023-07-10T22:28:28.503Z INFO No firmware defined for selected device
2023-07-10T22:28:28.504Z INFO Please make sure the device has been programmed with a supported firmware
2023-07-10T22:28:28.526Z INFO Connected to device with serial number: 000960106405 and family: NRF53_FAMILY 
2023-07-10T22:28:28.526Z 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.
2023-07-10T22:28:28.527Z INFO Device selected successfully
2023-07-10T22:28:36.447Z INFO Running device setup
2023-07-10T22:28:36.448Z DEBUG DTM Transport: Create setup CMD with control: 0
2023-07-10T22:28:36.448Z DEBUG DTM Transport: Create setup CMD with parameter: 0
2023-07-10T22:28:36.448Z DEBUG DTM Transport: Create setup CMD with dc type: 00
2023-07-10T22:28:36.452Z DEBUG DTM Transport: Serialport is opened
2023-07-10T22:28:36.453Z DEBUG DTM Transport: Succeeded to open serialport
2023-07-10T22:28:36.453Z DEBUG DTM Transport: Sending data: 0x00 0x00
2023-07-10T22:28:37.469Z INFO DTM setup reset command failed
2023-07-10T22:28:37.470Z INFO Can not communicate with device. Make sure it is not in use by another application and that it has a Direct Test Mode compatible firmware.
2023-07-10T22:28:54.433Z INFO Running device setup
2023-07-10T22:28:54.433Z DEBUG DTM Transport: Create setup CMD with control: 0
2023-07-10T22:28:54.433Z DEBUG DTM Transport: Create setup CMD with parameter: 0
2023-07-10T22:28:54.433Z DEBUG DTM Transport: Create setup CMD with dc type: 00
2023-07-10T22:28:54.434Z DEBUG DTM Transport: Sending data: 0x00 0x00
2023-07-10T22:28:55.445Z INFO DTM setup reset command failed
2023-07-10T22:28:55.446Z INFO Can not communicate with device. Make sure it is not in use by another application and that it has a Direct Test Mode compatible firmware.
2023-07-10T22:40:07.113Z DEBUG DTM Transport: Close serialport
2023-07-10T22:40:07.138Z DEBUG DTM Transport: Succeeded to close serialport
2023-07-10T22:40:10.636Z INFO No firmware defined for selected device
2023-07-10T22:40:10.636Z INFO Please make sure the device has been programmed with a supported firmware
2023-07-10T22:40:10.647Z INFO Connected to device with serial number: 000960106405 and family: NRF53_FAMILY 
2023-07-10T22:40:10.647Z 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.
2023-07-10T22:40:10.650Z INFO Device selected successfully
2023-07-10T22:40:13.980Z INFO Running device setup
2023-07-10T22:40:13.980Z DEBUG DTM Transport: Create setup CMD with control: 0
2023-07-10T22:40:13.981Z DEBUG DTM Transport: Create setup CMD with parameter: 0
2023-07-10T22:40:13.981Z DEBUG DTM Transport: Create setup CMD with dc type: 00
2023-07-10T22:40:13.984Z DEBUG DTM Transport: Serialport is opened
2023-07-10T22:40:13.985Z DEBUG DTM Transport: Succeeded to open serialport
2023-07-10T22:40:13.985Z DEBUG DTM Transport: Sending data: 0x00 0x00
2023-07-10T22:40:14.993Z INFO DTM setup reset command failed
2023-07-10T22:40:14.993Z INFO Can not communicate with device. Make sure it is not in use by another application and that it has a Direct Test Mode compatible firmware.
2023-07-10T22:44:56.906Z DEBUG DTM Transport: Close serialport
2023-07-10T22:44:56.921Z DEBUG DTM Transport: Succeeded to close serialport
2023-07-10T22:44:58.571Z INFO No firmware defined for selected device
2023-07-10T22:44:58.571Z INFO Please make sure the device has been programmed with a supported firmware
2023-07-10T22:44:58.573Z INFO Connected to device with serial number: 000960106405 and family: NRF53_FAMILY 
2023-07-10T22:44:58.573Z 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.
2023-07-10T22:44:58.573Z INFO Device selected successfully
2023-07-10T22:50:41.837Z INFO No firmware defined for selected device
2023-07-10T22:50:41.838Z INFO Please make sure the device has been programmed with a supported firmware
2023-07-10T22:50:41.845Z INFO Device selected successfully
2023-07-10T22:50:44.885Z INFO Running device setup
2023-07-10T22:50:44.885Z DEBUG DTM Transport: Create setup CMD with control: 0
2023-07-10T22:50:44.885Z DEBUG DTM Transport: Create setup CMD with parameter: 0
2023-07-10T22:50:44.885Z DEBUG DTM Transport: Create setup CMD with dc type: 00
2023-07-10T22:50:53.594Z INFO Running device setup
2023-07-10T22:50:53.594Z DEBUG DTM Transport: Create setup CMD with control: 0
2023-07-10T22:50:53.594Z DEBUG DTM Transport: Create setup CMD with parameter: 0
2023-07-10T22:50:53.594Z DEBUG DTM Transport: Create setup CMD with dc type: 00
2023-07-10T22:51:40.308Z DEBUG DTM Transport: Serialport is opened
2023-07-10T22:51:40.312Z DEBUG DTM Transport: Succeeded to open serialport
2023-07-10T22:51:40.313Z DEBUG DTM Transport: Sending data: 0x00 0x00
2023-07-10T22:51:40.313Z DEBUG DTM Transport: Sending data: 0x00 0x00
2023-07-10T22:51:41.316Z INFO DTM setup reset command failed
2023-07-10T22:51:41.316Z INFO Can not communicate with device. Make sure it is not in use by another application and that it has a Direct Test Mode compatible firmware.
2023-07-10T22:51:41.317Z INFO DTM setup reset command failed
2023-07-10T22:51:41.317Z INFO Can not communicate with device. Make sure it is not in use by another application and that it has a Direct Test Mode compatible firmware.
2023-07-10T22:51:58.755Z INFO Running device setup
2023-07-10T22:51:58.755Z DEBUG DTM Transport: Create setup CMD with control: 0
2023-07-10T22:51:58.756Z DEBUG DTM Transport: Create setup CMD with parameter: 0
2023-07-10T22:51:58.756Z DEBUG DTM Transport: Create setup CMD with dc type: 00
2023-07-10T22:51:58.756Z DEBUG DTM Transport: Sending data: 0x00 0x00
2023-07-10T22:51:59.763Z INFO DTM setup reset command failed
2023-07-10T22:51:59.763Z INFO Can not communicate with device. Make sure it is not in use by another application and that it has a Direct Test Mode compatible firmware.
2023-07-10T22:53:03.541Z DEBUG DTM Transport: Close serialport
2023-07-10T22:53:03.669Z DEBUG DTM Transport: Succeeded to close serialport
2023-07-10T22:53:05.366Z INFO No firmware defined for selected device
2023-07-10T22:53:05.366Z INFO Please make sure the device has been programmed with a supported firmware
2023-07-10T22:53:05.371Z INFO Connected to device with serial number: 000960106405 and family: NRF53_FAMILY 
2023-07-10T22:53:05.372Z 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.
2023-07-10T22:53:05.374Z INFO Device selected successfully
2023-07-10T22:53:07.824Z INFO Running device setup
2023-07-10T22:53:07.824Z DEBUG DTM Transport: Create setup CMD with control: 0
2023-07-10T22:53:07.824Z DEBUG DTM Transport: Create setup CMD with parameter: 0
2023-07-10T22:53:07.824Z DEBUG DTM Transport: Create setup CMD with dc type: 00
2023-07-10T22:54:41.144Z DEBUG DTM Transport: Serialport is opened
2023-07-10T22:54:41.144Z DEBUG DTM Transport: Succeeded to open serialport
2023-07-10T22:54:41.145Z DEBUG DTM Transport: Sending data: 0x00 0x00
2023-07-10T22:54:42.156Z INFO DTM setup reset command failed
2023-07-10T22:54:42.157Z INFO Can not communicate with device. Make sure it is not in use by another application and that it has a Direct Test Mode compatible firmware.
2023-07-10T23:02:02.518Z DEBUG DTM Transport: Close serialport
2023-07-10T23:02:02.525Z DEBUG DTM Transport: Succeeded to close serialport
2023-07-10T23:02:06.657Z INFO No firmware defined for selected device
2023-07-10T23:02:06.658Z INFO Please make sure the device has been programmed with a supported firmware
2023-07-10T23:02:06.663Z INFO Connected to device with serial number: 000960106405 and family: NRF53_FAMILY 
2023-07-10T23:02:06.663Z 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.
2023-07-10T23:02:06.663Z INFO Device selected successfully
2023-07-10T23:14:58.335Z INFO No firmware defined for selected device
2023-07-10T23:14:58.335Z INFO Please make sure the device has been programmed with a supported firmware
2023-07-10T23:14:58.342Z INFO Connected to device with serial number: 000960106405 and family: NRF53_FAMILY 
2023-07-10T23:14:58.342Z 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.
2023-07-10T23:14:58.342Z INFO Device selected successfully
2023-07-10T23:15:00.443Z INFO Running device setup
2023-07-10T23:15:00.443Z DEBUG DTM Transport: Create setup CMD with control: 0
2023-07-10T23:15:00.443Z DEBUG DTM Transport: Create setup CMD with parameter: 0
2023-07-10T23:15:00.443Z DEBUG DTM Transport: Create setup CMD with dc type: 00
2023-07-10T23:15:00.446Z DEBUG DTM Transport: Serialport is opened
2023-07-10T23:15:00.446Z DEBUG DTM Transport: Succeeded to open serialport
2023-07-10T23:15:00.447Z DEBUG DTM Transport: Sending data: 0x00 0x00
2023-07-10T23:15:01.447Z INFO DTM setup reset command failed
2023-07-10T23:15:01.448Z INFO Can not communicate with device. Make sure it is not in use by another application and that it has a Direct Test Mode compatible firmware.
2023-07-10T23:18:01.379Z INFO Running device setup
2023-07-10T23:18:01.379Z DEBUG DTM Transport: Create setup CMD with control: 0
2023-07-10T23:18:01.379Z DEBUG DTM Transport: Create setup CMD with parameter: 0
2023-07-10T23:18:01.379Z DEBUG DTM Transport: Create setup CMD with dc type: 00
2023-07-10T23:18:01.379Z DEBUG DTM Transport: Sending data: 0x00 0x00
2023-07-10T23:18:02.380Z INFO DTM setup reset command failed
2023-07-10T23:18:02.380Z INFO Can not communicate with device. Make sure it is not in use by another application and that it has a Direct Test Mode compatible firmware.
2023-07-10T23:33:15.120Z DEBUG DTM Transport: Close serialport
2023-07-10T23:33:15.145Z DEBUG DTM Transport: Succeeded to close serialport
2023-07-10T23:33:17.481Z INFO No firmware defined for selected device
2023-07-10T23:33:17.481Z INFO Please make sure the device has been programmed with a supported firmware
2023-07-10T23:33:17.487Z INFO Connected to device with serial number: 000960106405 and family: NRF53_FAMILY 
2023-07-10T23:33:17.487Z 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.
2023-07-10T23:33:17.490Z INFO Device selected successfully
2023-07-10T23:33:19.822Z INFO Running device setup
2023-07-10T23:33:19.822Z DEBUG DTM Transport: Create setup CMD with control: 0
2023-07-10T23:33:19.822Z DEBUG DTM Transport: Create setup CMD with parameter: 0
2023-07-10T23:33:19.823Z DEBUG DTM Transport: Create setup CMD with dc type: 00
2023-07-10T23:33:19.826Z DEBUG DTM Transport: Serialport is opened
2023-07-10T23:33:19.826Z DEBUG DTM Transport: Succeeded to open serialport
2023-07-10T23:33:19.826Z DEBUG DTM Transport: Sending data: 0x00 0x00
2023-07-10T23:33:20.827Z INFO DTM setup reset command failed
2023-07-10T23:33:20.827Z INFO Can not communicate with device. Make sure it is not in use by another application and that it has a Direct Test Mode compatible firmware.
2023-07-10T23:35:15.332Z DEBUG DTM Transport: Close serialport
2023-07-10T23:35:15.342Z DEBUG DTM Transport: Succeeded to close serialport
2023-07-10T23:36:55.728Z INFO No firmware defined for selected device
2023-07-10T23:36:55.728Z INFO Please make sure the device has been programmed with a supported firmware
2023-07-10T23:36:55.731Z INFO Connected to device with serial number: 000960106405 and family: NRF53_FAMILY 
2023-07-10T23:36:55.731Z 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.
2023-07-10T23:36:55.731Z INFO Device selected successfully
2023-07-10T23:36:58.097Z INFO Running device setup
2023-07-10T23:36:58.098Z DEBUG DTM Transport: Create setup CMD with control: 0
2023-07-10T23:36:58.098Z DEBUG DTM Transport: Create setup CMD with parameter: 0
2023-07-10T23:36:58.098Z DEBUG DTM Transport: Create setup CMD with dc type: 00
2023-07-10T23:36:58.101Z DEBUG DTM Transport: Serialport is opened
2023-07-10T23:36:58.101Z DEBUG DTM Transport: Succeeded to open serialport
2023-07-10T23:36:58.102Z DEBUG DTM Transport: Sending data: 0x00 0x00
2023-07-10T23:36:59.109Z INFO DTM setup reset command failed
2023-07-10T23:36:59.109Z INFO Can not communicate with device. Make sure it is not in use by another application and that it has a Direct Test Mode compatible firmware.
2023-07-10T23:47:26.116Z DEBUG DTM Transport: Close serialport
2023-07-10T23:47:26.135Z DEBUG DTM Transport: Succeeded to close serialport
2023-07-10T23:47:27.986Z INFO No firmware defined for selected device
2023-07-10T23:47:27.986Z INFO Please make sure the device has been programmed with a supported firmware
2023-07-10T23:47:27.989Z INFO Connected to device with serial number: 000960106405 and family: NRF53_FAMILY 
2023-07-10T23:47:27.989Z 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.
2023-07-10T23:47:27.989Z INFO Device selected successfully
2023-07-10T23:47:31.822Z INFO Running device setup
2023-07-10T23:47:31.822Z DEBUG DTM Transport: Create setup CMD with control: 0
2023-07-10T23:47:31.822Z DEBUG DTM Transport: Create setup CMD with parameter: 0
2023-07-10T23:47:31.822Z DEBUG DTM Transport: Create setup CMD with dc type: 00
2023-07-10T23:47:31.824Z DEBUG DTM Transport: Serialport is opened
2023-07-10T23:47:31.824Z DEBUG DTM Transport: Succeeded to open serialport
2023-07-10T23:47:31.825Z DEBUG DTM Transport: Sending data: 0x00 0x00
2023-07-10T23:47:32.832Z INFO DTM setup reset command failed
2023-07-10T23:47:32.833Z INFO Can not communicate with device. Make sure it is not in use by another application and that it has a Direct Test Mode compatible firmware.

Parents
  • Hi

    When using the Direct Test Mode app in nRF Connect for Desktop, you will get a pop-up when trying to connect an nRF5x DK with a request to program it with the DTM firmware if it isn't already, so you shouldn't have to program it yourself beforehand.

    Best regards,

    Simon

  • Hi Simon,

    I got it working with the DK, but our custom board keeps saying "can not communicate with the device" on the DTM Windows app. 

    I'm trying to use SDK v.2.3.0 nrf/samples/bluetooth/direct_test_mode with built-in USB on nRF5340 or the UART-to-USB virtual COM port with an FTDI cable that has a TC2030 connector on the end, but that hasn't worked.

    The TC2030 connector looks like this on our PCB:

     TC2030-MCP-NL.pdf

    Based on this document DTM for DUT

    Our UART_DBG_TX pin is P0.28 and the UART_DBG_RX pin is P0.27. Do I need to edit the nrf5340dk_nrf5340_cpunet-pinctrl.dtsi file like so?

    And do I add CONFIG_DTM_USB=y to my prj.conf file without adding any files like zephyr/drivers/usbc.h or other code to use DTM on my custom board via USB? I also added CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y to the prj.conf file for both the APP and NET cores since we don't have an external 32KHz oscillator between X1 and X2. Is there anything else I need to do to make the nRF Connect DTM app on my Windows 10 PC work with my custom board? 

Reply
  • Hi Simon,

    I got it working with the DK, but our custom board keeps saying "can not communicate with the device" on the DTM Windows app. 

    I'm trying to use SDK v.2.3.0 nrf/samples/bluetooth/direct_test_mode with built-in USB on nRF5340 or the UART-to-USB virtual COM port with an FTDI cable that has a TC2030 connector on the end, but that hasn't worked.

    The TC2030 connector looks like this on our PCB:

     TC2030-MCP-NL.pdf

    Based on this document DTM for DUT

    Our UART_DBG_TX pin is P0.28 and the UART_DBG_RX pin is P0.27. Do I need to edit the nrf5340dk_nrf5340_cpunet-pinctrl.dtsi file like so?

    And do I add CONFIG_DTM_USB=y to my prj.conf file without adding any files like zephyr/drivers/usbc.h or other code to use DTM on my custom board via USB? I also added CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y to the prj.conf file for both the APP and NET cores since we don't have an external 32KHz oscillator between X1 and X2. Is there anything else I need to do to make the nRF Connect DTM app on my Windows 10 PC work with my custom board? 

Children
No Data
Related