This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to Run DTM on nRF52840 development kit using MT8852B?

Hi all,


I have a nRF52840 development kit and flashed (I believed it flashed successfully) with direct test mode .hex file from SDK 15.2. What I facing was not able to run any test from MT8852B due to unable to get the unit address from the board. Did anyone tried to run DTM with MT8852B on nRF52840 DK ? Kindly advise

TQ

Parents
  • Hi,

     

    In order to get DTM running on any bluetooth tester, you would need to use other RXD and TXD pins when using the nRF5x development kit. This is because the UART is by default routed to the SEGGER IC on the devkit, so you will get two UART hosts conflicting the lines.

    If you go into the dtm/direct_test_mode/main.c file, you can change the defines for RXD and TXD in function uart_init().

    After changing these from the default GPIOs P0.06 and P0.08 (flip the kit over to see which GPIOs are unused), you can connect the chosen GPIOs to the bluetooth testers UART. Remember to use BLE 2-Wire when connecting to the Anritsu.

    Kind regards,

    Håkon

  • hi Hakan,

    regarding the Rx & Tx pin, if i only use the J3 usb port as the power source to the nRF52840 chipset, could this good enough to avoid the conflict as you mentioned?? in this case, do i still need to redefine the pin in the main.c file ??

    Another thing, i am using the dtm/direct_test_mode_pca10056.hex file instead of the dtm/main.c file as the source for the test. any different between them?? kindly advice if i am using the correct source code..

    tq

  • Hi,

     

    As stated in the answer; DTM and the SoftDevice cannot be enabled at the same time, as they both require the usage of the RADIO peripheral.

    If you have a BLE example, and want to add DTM, you have to ensure that the softdevice is disabled when entering DTM, and vice versa when using the SoftDevice.

    The "direct_test_mode" (DTM) project is standalone and does not require the softdevice.

    Do you still have issues connecting to your bluetooth tester? If yes; could you post info/photos as asked in my former question?

     

    Kind regards,

    Håkon

  • Hi,

    The problem still there... =.=

    Here is how the connection between the DK board and the Anritsu tester. 

      (Level shifter board)

    BR,

  • Hi,

     

    Have you tried compiling the project "direct_test_mode" with other pins? Here's another prebuilt .hex with P0.26 (RXD) and P0.27 (TXD): nrf52840_xxaa_dtm_p026_p027.hex

     

    Kind regards,

    Håkon

  • Hi,

    Thanks again for the hex file, but still unable to communicate with the Anritsu. It show me "EUT disconnected" & "Warning: EUT control (0x56)" when i choose the rs232 (my level shifter is rs232 protocol) and ble2wire as the source.

    Just fyi, my setup is no problem because I tried the same setup with my previous project and it works !!

    Maybe there is some setting i need to modify from the Anritsu?? Current setting as below:

    - baud rate : 19200

    - parity: none

    - data length: 8 bits

    - stop bits: 1 bits

    - handshaking: none

  • Hi,

     

    New Guy said:

    Maybe there is some setting i need to modify from the Anritsu?? Current setting as below:

    - baud rate : 19200

    - parity: none

    - data length: 8 bits

    - stop bits: 1 bits

    - handshaking: none

    These settings are good.

     

    Did you try the other one with different GPIOs to see if this works better?

    TXD should be high from the nRF (ie: P0.27), while RXD should be low (or pulled high when connected to PC). Could you verify this?

    Kind regards,

    Håkon

Reply
  • Hi,

     

    New Guy said:

    Maybe there is some setting i need to modify from the Anritsu?? Current setting as below:

    - baud rate : 19200

    - parity: none

    - data length: 8 bits

    - stop bits: 1 bits

    - handshaking: none

    These settings are good.

     

    Did you try the other one with different GPIOs to see if this works better?

    TXD should be high from the nRF (ie: P0.27), while RXD should be low (or pulled high when connected to PC). Could you verify this?

    Kind regards,

    Håkon

Children
Related