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

Parents Reply Children
  • paul0208 said:
    How and what can I modify the main.c in dtm example code to run on DK board?

    The unmodified example should work on our development kit, you don't need to modify it.

    paul0208 said:
    My custom boad is connected to PC by port p1.9 and p0.12 thu USB-uart converter.

    Then you need to replace RX_PIN_NUMBER and TX_PIN_NUMBER in uart_init() with these pins,

    paul0208 said:
    Do I have to use RTS and CTS to use "DTM tool"?

    The unmodified example do not use Hardware Flow Control so it's not required if you don't modify this.

    regards

    Jared 

  • Hi,

    Thanks for reply.

    I have download nRF5_SDK_17.1.0_ddde560 newly for clarify.
    And, compile at nRF5_SDK_17.1.0_ddde560\examples\dtm\direct_test_mode\pca10056\blank\armgcc without modify.
    I program the compiled hex file to my DK 52840 DK board and run "Direct Test Mode" App on nRF Connect for desktop. But I found as follow error popup window


    When I press Program button, "Direct test Mode" App updates my DK board by some binary automatically.
    Start Test is OK

    I did not modify dtm example.

    BR
    Paul

  • After update the DK board, I have read back DK board program again.

    But compiled binary of example as follow.

    Some different between good and bad.

  • Hi,
    I know that a support engineer has been assigned to this ticket.
    When can I get the support?

    BR
    Paul

  • paul0208 said:
    I have download nRF5_SDK_17.1.0_ddde560 newly for clarify.
    And, compile at nRF5_SDK_17.1.0_ddde560\examples\dtm\direct_test_mode\pca10056\blank\armgcc without modify.
    I program the compiled hex file to my DK 52840 DK board and run "Direct Test Mode" App on nRF Connect for desktop. But I found as follow error popup window


    When I press Program button, "Direct test Mode" App updates my DK board by some binary automatically.
    Start Test is OK

    I did not modify dtm example.

    I think I need to clarify how the DTM test should be run. There is several options for running a DTM test, one of the options is to use a development kit as a tester. You have the development kit where you flash the software from the nRF Connect DTM, and then you have the device that you want to test, where you flash the DTM example from the SDK. The picture that you shared is not an error, but it is telling you that the device that you want to use as a tester doesn't have the proper DTM tester application programmed. 

    You need to:

    1. Flash the Development kit with the nRF Connect DTM application.
    2. Modify the DTM example from the nRF5SDK so that the UART pins fits your custom board, and then flash it to your custom board.
    3. Perform DTM test

    See this note for more information.

    regards

    Jared 

Related