Running on Linux, native_sim connecting to ec_tui app through an emulated UART pipe produces stuttering issues on ec tui. App is completely not responsive.
On WSL, other user observe the stuttering, but it is not as bad. So it seems to be some kind of timing bug.
Switching the rust wrapper configuration for UART from interrupt driven to async
CONFIG_UART_ASYNC_API=n
CONFIG_UART_INTERRUPT_DRIVEN=y
to
CONFIG_UART_ASYNC_API=y
CONFIG_UART_INTERRUPT_DRIVEN=n
causes the stuttering issue to go away. It seems like it might have something to do the cadence of fill/reading from the buffer one byte at a time in the rust wrapper.
Running on Linux, native_sim connecting to ec_tui app through an emulated UART pipe produces stuttering issues on ec tui. App is completely not responsive.
On WSL, other user observe the stuttering, but it is not as bad. So it seems to be some kind of timing bug.
Switching the rust wrapper configuration for UART from interrupt driven to async
to
causes the stuttering issue to go away. It seems like it might have something to do the cadence of fill/reading from the buffer one byte at a time in the rust wrapper.