Why I can not start DTM mode?

I'm using SDK 12.3.0, and changed the TX_PIN to 30, RX_PIN to 5, flow control is set to false, bitrate no change(19200).After I programmed the firmware to my custom board, start nrf connect for destop, launch the dtm test, it complained  "Can not communicate with the device". Then I use the sample application uart to test, it works both tx and rx, this means the hardware connect is correct  Why?

Parents
  • Hi,

     

    One difference between the uart sample, and the DTM is the requirement for the external HFXO to run.

    Have you tried to flash your direct_test_mode example and entered debug mode to see if it is stuck in this loop?

    NRF_CLOCK->EVENTS_HFCLKSTARTED = 0;
    NRF_CLOCK->TASKS_HFCLKSTART    = 1;
    
    while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0)
    {
        // Do nothing while waiting for the clock to start
    }

     

    If it is stuck in this loop, it indicates that there is a problem with your external HFCLK circuitry, likely the xtal caps are incorrect.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    One difference between the uart sample, and the DTM is the requirement for the external HFXO to run.

    Have you tried to flash your direct_test_mode example and entered debug mode to see if it is stuck in this loop?

    NRF_CLOCK->EVENTS_HFCLKSTARTED = 0;
    NRF_CLOCK->TASKS_HFCLKSTART    = 1;
    
    while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0)
    {
        // Do nothing while waiting for the clock to start
    }

     

    If it is stuck in this loop, it indicates that there is a problem with your external HFCLK circuitry, likely the xtal caps are incorrect.

     

    Kind regards,

    Håkon

Children
Related