2

Raspberry pi 4 has 4 usable uart ports, uart 4 with rx in gpio 9 and tx in gpio 8, share rx pin with SPI0 miso0 pin.

I would like to use both peripherals no ate the same time, but in different moment of time.

In config.txt I enable uart4 with dtoverlay=4, but spi0 stop working. Is there any way to solve this issue. I am thinking in load dtoverlay dynamically, but I am not sure if this is possible.

1 Answers1

1

See Raspberry Pi4 UART.

As you will see there is a conflict. While there are extra functions on the Pi4 there are only the same number of pins, so overlap is inevitable.

You need to consider your needs and pick appropriate options.

NOTE you can enable overlays on the fly e.g sudo dtoverlay uart4.


Changes to the OS mean that enabling some overlays on the fly is not currently working, although formerly it worked.

Milliways
  • 62,573
  • 32
  • 113
  • 225