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
  • Hi Jared,

    I'm having a similar problem. I'm trying to use SDK 2.3.0 nrf/samples/bluetooth/direct_test_mode with built-in USB on nRF5340 or the UART-to-USB virtual COM port with an FTDI cable that has a TC2030 connector on the end, but that hasn't worked.

    The TC2030 connector looks like this on our PCB:

     6242.TC2030-MCP-NL.pdf

    Based on this document DTM for DUT

    Our UART_DBG_TX pin is P0.28 and the UART_DBG_RX pin is P0.27. Do I need to edit the nrf5340dk_nrf5340_cpunet-pinctrl.dtsi file like so?

    And do I add CONFIG_DTM_USB=y to my prj.conf file without adding any files like zephyr/drivers/usbc.h or other code to use DTM on my custom board via USB? I also added CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y to the prj.conf file since we don't have an external 32KHz oscillator between X1 and X2. Is there anything else I need to do to make the nRF Connect DTM app on my Windows 10 PC work with my custom board?

Children
No Data
Related