Also ich hatte mal das selbe Problem und da lag es an dieser galvanischen Trennung
Da hat die UART Kommunikation auch nur ab und an funktioniert.