Modify DTM FW UART Tx & Rx pins

Hello,

I want to use DTM FW for my design and have to update Tx & Rx pins to 21 and 20 respectively. Looking at the files in $\ncs\v1.8.0\nrf\samples\bluetooth\direct_test_mode\src I don't see any that contains #define RX_PIN_NUMBER and #define TX_PIN_NUMBER 6. What files am I supposed to edit to update the pin configuration? Can I apply the modification to the nRF52840DK or should I apply it directly to my hardware?

Thank you.

Parents
  • Hi Fabio,

    Really sorry for the delayed response. We are currently at low staffing due to the holiday season. So please expect some delays in the responses.

    You can create an overlay file and save it in the direct_test_mode folder in the name nrf52840dk_nrf52840.overlay. You can check this blog on how to create overlay files. When you build the sample, a new build folder will be created and within the zephyr folder in here, you can see a zephyr.dts file which gives details regarding all the pins and configurations for this board. Here you can see the TX and RX pin initiation and once you create an overlay file, it will literally "overlay" this dts file and your configurations will be considered.

    Kind Regards,

    Priyanka

Reply
  • Hi Fabio,

    Really sorry for the delayed response. We are currently at low staffing due to the holiday season. So please expect some delays in the responses.

    You can create an overlay file and save it in the direct_test_mode folder in the name nrf52840dk_nrf52840.overlay. You can check this blog on how to create overlay files. When you build the sample, a new build folder will be created and within the zephyr folder in here, you can see a zephyr.dts file which gives details regarding all the pins and configurations for this board. Here you can see the TX and RX pin initiation and once you create an overlay file, it will literally "overlay" this dts file and your configurations will be considered.

    Kind Regards,

    Priyanka

Children
No Data
Related