Unable to use the DTM example for nRF5340 DK (PCA10095)

I am trying to use the DTM example for nRF5340 DK (PCA10095). The example is located at "C:\v1.7.0\nrf\samples\bluetooth\direct_test_mode", but I am facing "NRF_RADIO_Type" error along with few more errors with 1.7.0 as well as 1.9.0 SDK. I have attached the error log files' links below.

SDK 1.7.0 error log: https://drive.google.com/file/d/1m75QjX6ug_ym6KEYMkzjd8zMPitysDJz/view?usp=sharing

SDK 1.9.0 error log: https://drive.google.com/file/d/1epy6gnY7Dz73dMOb64afPjl9ZBsMckIp/view?usp=sharing

I have also tried using SDK 1.9.1, however I am unable to open the DTM project in it.

Thanks.

Parents
  • Hi,

    I have tested Direct Test Mode (DTM) sample and did not have any issues with building the sample neither in NCS v1.7.0 nor in v1.9.0.

    Please ensure that the board you choose is nrf5340dk_nrf5340_cpunet as described in  direct test mode.
    Based on the FEM support and hardware support, if you use nrf21540_ek, you should add extra CMAKE argument -DSHIELD=nrf21540_ek when adding build configuration.

    Best regards,
    Dejan

  • Hi dejans, 

    Thanks for the clarification. I am now able to build and download the the sample into the DK. However, I am not able to use the DTM as I am getting the error "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".

    My setup: First chose the nrf5340dk_nrf5340_cpunet and direct_test_mode example, build and load the DTM firmware onto my PCA10095 via USB connector. Next, I select the COM port for my serial connection in nRF connect DTM app. Finally, I press the "Start Test" button at the bottom of the DTM section and then the error comes up.

    Thanks and Regards.

  • Hi,

    You would need to connect to the device which should be available under "Select Device" in the upper-left corner of the Direct Test application.

    Best regards,
    Dejan

  • Hi  , 

    I'm seeing the same issue. I've updated pin configs in the board's .dts and .dtsi files for both net and app cores but no luck. How do I change/reassign the UART pins from within the DTM project itself?

    Thanks 

  • Hi,

    Which NCS version do you use?

    MarienMup said:
    I've updated pin configs in the board's .dts and .dtsi files for both net and app cores but no luck.

    Could you provide more information about "no luck"? Did you get any errors? If so, could you provide a log?

    Best regards,
    Dejan

  • HI,

    MarienMup said:
    How do I change/reassign the UART pins from within the DTM project itself?

    Pin control is the feature in NCS v2.0.0 that makes this possible. More information about dynamic pin control is available in Zephyr documentation.

    For demonstration, you can take a look at the dynamic pin control sample and documentation.

    In order to change the configuration, resetting the chip is needed after reconfiguring of pins has been done.

    Best regards,
    Dejan

  • Hi Dejans,

    In V2.0.0, for nRF5340 DK, I am able to flash the example and start the test too.

    However, I get the response "DTM setup tx power command failed with XX dbm" where XX is greater than 0. i.e. For Tx power of 0 dbm and lesser I am able to transmit it. So is the maximum TX power limit for nRF5340 is 0 dbm?

    I am attaching the TX commands and respective responses.

    Thanks

    Sending 0x0000 DTM command	Received 0x0000 DTM event
    Sending 0x820B DTM command	Received 0x0001 DTM event
    Sending 0x0104 DTM command	Received 0x0000 DTM event
    Sending 0x0300 DTM command	Received 0x0000 DTM event
    Sending 0x0204 DTM command	Received 0x0000 DTM event
    Sending 0x813C DTM command	Received 0x0000 DTM event
    Sending 0xC000 DTM command	Received 0x8000 DTM event
    Sending 0x0000 DTM command	Received 0x0000 DTM event
    Sending 0x800B DTM command	Received 0x0000 DTM event
    Sending 0x0104 DTM command	Received 0x0000 DTM event
    Sending 0x0300 DTM command	Received 0x0000 DTM event
    Sending 0x0204 DTM command	Received 0x0000 DTM event
    Sending 0x813C DTM command	Received 0x0000 DTM event
    Sending 0xC000 DTM command	Received 0x8000 DTM event

Reply
  • Hi Dejans,

    In V2.0.0, for nRF5340 DK, I am able to flash the example and start the test too.

    However, I get the response "DTM setup tx power command failed with XX dbm" where XX is greater than 0. i.e. For Tx power of 0 dbm and lesser I am able to transmit it. So is the maximum TX power limit for nRF5340 is 0 dbm?

    I am attaching the TX commands and respective responses.

    Thanks

    Sending 0x0000 DTM command	Received 0x0000 DTM event
    Sending 0x820B DTM command	Received 0x0001 DTM event
    Sending 0x0104 DTM command	Received 0x0000 DTM event
    Sending 0x0300 DTM command	Received 0x0000 DTM event
    Sending 0x0204 DTM command	Received 0x0000 DTM event
    Sending 0x813C DTM command	Received 0x0000 DTM event
    Sending 0xC000 DTM command	Received 0x8000 DTM event
    Sending 0x0000 DTM command	Received 0x0000 DTM event
    Sending 0x800B DTM command	Received 0x0000 DTM event
    Sending 0x0104 DTM command	Received 0x0000 DTM event
    Sending 0x0300 DTM command	Received 0x0000 DTM event
    Sending 0x0204 DTM command	Received 0x0000 DTM event
    Sending 0x813C DTM command	Received 0x0000 DTM event
    Sending 0xC000 DTM command	Received 0x8000 DTM event

Children
Related