Smart Home Automation Forum
how to enable Raspberry pi CM4 additional UART serial ports - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: KC868-Server Raspberry Pi4 local server (https://www.kincony.com/forum/forumdisplay.php?fid=17)
+--- Thread: how to enable Raspberry pi CM4 additional UART serial ports (/showthread.php?tid=4086)



how to enable Raspberry pi CM4 additional UART serial ports - admin - 01-05-2024

edit config.txt file, add:

dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5

Note that the kernel will reject attempts to enable UARTs where the pins are in use by something else (e.g. UART0, UART1 or one of the I2C ports), or it might even disable the other thing, so make sure what you are trying to do is possible.

uart1 being enabled by default, pi 4 having 4 extra uarts.