Finally we found the issue. It had two reasons:
- Something got corrupted heavily as described here: fdMonitor only works sporadically - #37 by HudriWudri. Please have a look at that stuff because this must not happen!!!. From my point of view there’s something deeply wrong if actions like that corrupt something permanently.
- Once again, the device which sends UART data, sent data to early, meaning before the Sierra’s UART was ready. If Sierra’s UART was not ready before data was received, the UART didn’t function properly anymore (no data was being received). Hence, the watchdog stabilized after a while (as mentioned here fdMonitor only works sporadically). So sometimes the device just crashed (as described here Kernel BUG at /usr/src/kernel/kernel/time/timer.c:806! - #19 by HudriWudri) if data was being received at the same moment as open was called or it just didn’t work sometimes if data was being received before /dev/ttyHS0 was ready. This also must not happen!!! Please have a look at this stuff and even more important: Please update the kernel! It is - as mentioned here - already 7 years old!
Linux: Linux swi-mdm9x28-wp 3.18.140 #1 PREEMPT Tue Aug 3 08:17:34 UTC 2021 armv7l GNU/Linux
Legato: 19.11.6_af84a308b18c93dd4f3ae40f63c9bc67