Skip to content

Stuttering issue with native_sim + ec_tui when using the interrupt driven UART #38

Description

@jerrysxie

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions