Skip to content
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

fix(BLE): Add WSF Terminal flush on Console UART error #1212

Closed
wants to merge 6 commits into from

Conversation

EricB-ADI
Copy link
Contributor

@EricB-ADI EricB-ADI commented Oct 4, 2024

Description

  • Forcefully reset terminal parser on UART error when used for console

Cordio has no way to report an error upon a hardware failure such as framing or overflow. This will lead to a parser failure. If you are unlucky and get stuck in a place where the new lines are messed up, it may lead to constant bad commands

@github-actions github-actions bot added the BLE Related to Bluetooth label Oct 4, 2024
@@ -92,7 +94,12 @@ void UART_CommonHandler(mxc_uart_regs_t *uart)
{
const uint8_t uartIdx = MXC_UART_GET_IDX(uart);

if( uartIdx == CONSOLE_UART || uartIdx == HCI_UART)
if(uartIdx == CONSOLE_UART)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this solve the problem we're having? I haven't seen RX errors in the testing that I've done.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have gotten a handful of overflow errors when it is automated. You probably won't when manually doing it. It used to be an assertion that fired off, which happened 5-10% of runs. It is my best guess right now for the no action bound issue I see.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're better off preventing the overflow with slower writes from the automation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will close it if you want, but we can't guarantee that the issue wont happen regardless.

@EricB-ADI EricB-ADI closed this Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLE Related to Bluetooth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants