nRF52840 DTM Can not communicate with my custom device.

Hi,

My custom board use nrf52840.
I first tested uart function by examples/peripheral/uart/*. It is good.
My board's uart ports are P1.9 for TX, P0.12 for RX.

And then, I modified the nRF5_SDK_17.1.0_ddde560\examples\dtm\direct_test_mode/main.c
But, it is not working with nRF Connect for desktop/Direct Test Mode.
I find " Can not communicate with my custom device." error.

And, I modify TX/RX port in main.c of dtm example to as follow

P0.05 RTS
P0.06 TXD
P0.07 CTS
P0.08 RXD

And compile and upload to nrf52840 DK board.
But, Direct test Mode appl do upgrade nrf52840 DK board firmware to some binary(maybe pre-compiled version by Nordic)
And DTM test is success by your binary.

Wha problem in my product?

BR
Paul

  • Hi,
    I want to do DTM test  for my custom board by nRF Connect DTM directly. not thru DK board.

    This is my history to test

    1. I have modified example source code of UART, and compile and upload to my custom board.
    2. but nRF Connect DTM app did not recognize my custom board. I found "Communication Error"
    3. So, I made this ticket. "nRF52840 DTM Can not communicate with my custom device."
    4. To  exclude my custom board's H/W problem, I wanted to test DK board first.
    5. After compile example WITHOUT any modify and upload to DK board, but nRF Connect DTM can not recognize uploaded F/W on DK board as I mentioned before. 

    I want to test my custom board by nRF Connect DTM directly thru USB UART.

    BR
    Paul

  • Hi,
    My board use 1.8V. Can I program this board by nRF52840 DK or nRF52832 DK ?

    BR
    Paul

  • Hi,

    paul0208 said:
    I want to do DTM test  for my custom board by nRF Connect DTM directly. not thru DK board.

    This is not supported, you either have to use a DK or a Anritsu as a production tester. This is described in the app note I shared earlier:

    paul0208 said:
    My board use 1.8V. Can I program this board by nRF52840 DK or nRF52832 DK ?

    From the documentation:

    Note: The voltage supported by external debugging/programming is VDD voltage. Normally, this is 3 V when running from USB, but if the onboard nRF52840 SoC is supplied from either USB or Li-Ion, the nRF power source switch (SW9) is in either Li-Po or USB position, and VDD can be set by the nRF52840 firmware. Make sure the voltage level of the external board matches the VDD of the nRF52840 DK.

    regards

    Jared 

  • Hi,


    DUT has UART interface connected to PC or Anritus as Fig 2 you attached.
    And dtm example should be programed into DUT after modifying UART configuration.

    This dtm example is not interworking with nRF connect DTM directly?
    Computer in Fig 2 is not nRF connect DTM?

    BR
    Paul

  • Paul,

    The computer is indeed running nRF Connect DTM but you still need either a Anritsu or a DK as a tester. I think it would be good if you could share a picture or a sketch that shows how you have setup the test, it would clarify any confusions. 

    Thank you,

    regards

    Jared 

Related