Accessing UART1 on the XIAO ESP32-C6

Hi Team

Question relating to the Tiny Matter-Native Board for Smart Home - XIAO ESP32C6. Can UART1 (not UART0) be remapped to pins D5/D8 on this board?

More info:

  • Schematic of this dev board says that UART0 is connected to D6/D7

  • According to the ESP32-C6 datasheet, UART0 spits out a bunch of debug info during power up:

  • I will have the module permanently connected to a host that I don’t want to be put into an odd mode from the start-up debug info UART0 sends.

  • So I want to instead use UART1 and remap the TX/RX pins to D5/D8:

    • TX changed from ESP32-C6 GPIO16 (U0TXD) to GPIO23 (SDIO_DATA3)

    • RX changed from ESP32-C6 GPIO17 (U0RXD) to GPIO19 (SDIO_CLK)

  • The odd thing is that the spec page for XIAO ESP32-C6 says that the dev board only has two UARTs:

    • 1x UART

    • 1x LP_UART

  • While the datasheet for ESP32-C6 says it has three:

    • 2x UART (UART0 & UART1)

    • 1x LP UART

HI there,

One is on the bottom (LP)
You can use any pins that are GPIO’s but you won’t get any of the parameters set for you, You need to explicitly define each pin and be sure to get the Syntax correct or it won’t work, Your only concern should be if any are BootStrap pins in question.
Use Soft serial and define whatever pins you want.

HTH
GL :slight_smile: PJ :v:

There are “multiple Serial ports on Xiao” type Threads have a look(search) at those it’s often used when a GPS connection is need and no Hardware ports are available. :+1:

Post up the code you are using , and use the code tags we can look. :crossed_fingers:

1 Like

Thanks, and no code yet as I’m still finalising the PCBA that uses the dev board.

I think most of my confusion comes from the store and spec page for the XIAO ESP32-C6, which says there are only two UARTs (UART0 & LP UART):

While the ESP32-C6 datasheet says there are three (UART0, UART1, & LP UART):