It is observed that after each test, weird characters appear on console. This problem goes away if deep sleep is disabled. The theory is that the CPU runs to deep sleep (_sys_suspend()) faster than UART can shift all the bits out. If we spin wait for UART FIFO to clear, this is no longer an issue. This is circumstantial evidence to the theory. So for now, put in a workaround to spin wait for UART FIFO to clear before going into deep sleep. Relates to #22885 Signed-off-by: Daniel Leung <daniel.leung@intel.com> |
||
|---|---|---|
| .. | ||
| arc | ||
| arm | ||
| nios2 | ||
| posix | ||
| riscv | ||
| x86 | ||
| xtensa | ||
| Kconfig | ||