Repository navigation
Zephyr: longer pastes over UART, and only the console stops code on Ctrl-C - #11587
Merged
Merged
Conversation
At 115200 baud the REPL echo cannot keep up with a long line or paste, and the 64-byte queue overflowed. With 1 KB, 1000-byte lines and pastes of up to about that size go through on SiWx917-DK2605A and ESP32-S31-Korvo-1. Costs 960 bytes of RAM. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
serial_cb() raised KeyboardInterrupt on 0x03 from every UART, including busio.UART, board UARTs and usb_cdc.data, so a sensor sending 0x03 would stop code.py. Pass sigint_enabled into construct_from_device, as the stm and silabs ports store it, and set it only for the UART and USB CDC consoles. TinyUSB ports likewise watch only the console CDC. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Bigger receive buffer for the UART console, and Ctrl-C only from the console.
Why
Long lines and pastes overflowed the 64-byte UART console buffer.
Any UART or
usb_cdc.datareceiving byte 0x03 stoppedcode.py.The console-only Ctrl-C mentioned in #11578.
Pastes over 1 KB still fail; these UARTs have no flow control.
A second hardware UART was not tested.
time.sleep(10)time.sleep(10)usb_cdc.datastopswhile True: passin_waiting)tests/except the display tests (need PIL)Written with Claude; tested on hardware by me.
🤖 Generated with Claude Code