Skip to content

Throw away UART bytes with errors in reception #1036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 9, 2022
Merged

Throw away UART bytes with errors in reception #1036

merged 2 commits into from
Dec 9, 2022

Conversation

earlephilhower
Copy link
Owner

Fixes #1021

The UART hardware will push characters into the receive FIFO even if there are parity, framing, or other errors. These are invalid and shouldn't be returned to the application, so drop them if errors detected.

This will also avoid the glitch-induced initial garbage character.

Fixes #1021

The UART hardware will push characters into the receive FIFO even if there
are parity, framing, or other errors.  These are invalid and shouldn't be
returned to the application, so drop them if errors detected.

This will also avoid the glitch-induced initial garbage character.
@earlephilhower earlephilhower merged commit 80d6e2f into master Dec 9, 2022
@earlephilhower earlephilhower deleted the ssss branch December 9, 2022 20:30
schkovich pushed a commit to schkovich/arduino-pico that referenced this pull request May 24, 2025
…arlephilhower#1012 (earlephilhower#1036)

* Added ARCHIVE_OUTPUT_DIRECTORY to uf2 output in CMake

This Commit enables the use of the ARCHIVE_OUTPUT_DIRECTORY target
properties in CMake for the generation of uf2 files.

The changeset in lines 47..51 is necessary due to CMake not
automatically creating the ARCHIVE_OUTPUT_DIRECTORY if no archive target
is present.

* rework cmake changes to make it friendler for non absolute paths

Co-authored-by: Graham Sanderson <graham.sanderson@raspberrypi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Serial1.available() reporting bytes available when none are available
1 participant