Skip to content

Issue #43: Bug: uart reception crashes on rx line fault#46

Draft
hasslesstech wants to merge 9 commits intomainfrom
43-ecu-stm32-bug-uart-reception-crashes-on-rx-line-fault
Draft

Issue #43: Bug: uart reception crashes on rx line fault#46
hasslesstech wants to merge 9 commits intomainfrom
43-ecu-stm32-bug-uart-reception-crashes-on-rx-line-fault

Conversation

@hasslesstech
Copy link
Copy Markdown
Contributor

This PR adds a timeout in UARTTransport_receive function that is triggered whenever no packets are added to the queue for over 50 ms. In case the timeout is reached, this function calls a new driver API function, drvUart_restart_receiver().

drvUart_restart_receiver() checks if the DMA is active and if it is not, starts it back up. Reception is restarted every time it crashes regardless of the reason for the crash. This allows for a timely and reliable recovery in case of any possible line failure.

At the same time, the function does not make unnecessary calls if the reception is active and no packets are being received.

@hasslesstech hasslesstech linked an issue Apr 22, 2026 that may be closed by this pull request
@hasslesstech hasslesstech force-pushed the 43-ecu-stm32-bug-uart-reception-crashes-on-rx-line-fault branch from 431a04f to c456e7b Compare April 22, 2026 16:38
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.

[ECU STM32] Bug: UART reception crashes on RX line fault

1 participant