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 Brad

    In the project you uploaded, it seems like UART0 is still set to use pins P0.17 and P0.18, and the visualizer indicates that as well.

    uart0_default: uart0_default {
    
                phandle = < 0x8 >;
    
                group1 {
    
                    psels = < 0x1c >;
    
                };
    
                group2 {
    
                    psels = < 0x1001b >;
    
                    bias-pull-up;
    
                };

    Additionally, the visualizer shows that P0.28 is configured to LED0 on our end, which would explain why P0.28 and P0.27 won't work as UART pins if you also have a LED configured on one of the pins

    Best regards,

    Simon

Reply
  • Hi Brad

    In the project you uploaded, it seems like UART0 is still set to use pins P0.17 and P0.18, and the visualizer indicates that as well.

    uart0_default: uart0_default {
    
                phandle = < 0x8 >;
    
                group1 {
    
                    psels = < 0x1c >;
    
                };
    
                group2 {
    
                    psels = < 0x1001b >;
    
                    bias-pull-up;
    
                };

    Additionally, the visualizer shows that P0.28 is configured to LED0 on our end, which would explain why P0.28 and P0.27 won't work as UART pins if you also have a LED configured on one of the pins

    Best regards,

    Simon

Children
Related