UART2 on the NRF5340DK

Hi!

I am attempting to use UART2 on v2.0.2 of the NRF5340DK. I see in the DTS files that UART2 is available on the SoC, but is currently disabled by default. UART0 and UART1 are enabled and forwarded to the interface MCU that generates the two virtual COM ports. However, I also need a 3rd UART port for my project and there seems to be no documentation for which pins correspond to UART2. Please let me know the correct pinout for TXD and RXD for UART2 so that I can enable it in the DTS overlay file and attach a USB-UART converter for my use.

Thanks

  • Hi

    You can create a .overlay file for your project where you define what pins you would like to use for the UART2 instance yourself. Any of the GPIOs not already used in your project should be fine to use for this purpose. You can see the board file for the nRF5340 DK to see which pins are already used and which are free. Let me know if you need any additional help with setting this up!

    Best regards,

    Simon

Related