I use the official Debian 9 desktop image, and uart4 can send data but not receive data

I use the official Debian 9 desktop image. I can send data on uart4 with pyserial, but I can’t receive data. I have modified hw_intfc.conf

intfc:pwm0=off
intfc:pwm1=off
intfc:uart2=off
intfc:uart4=on
intfc:spi1=off
intfc:spi2=off
intfc:i2c2=off
intfc:i2c6=off
intfc:i2c7=off

Does anyone know the cause of this problem? I doubt it has something to do with some settings.

This is because the UART4 is muxed with SPI flash. You can not use it as uart function unless you de-solder the on board SPI flash.

1 Like