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

DAP: Detect SWO buffer overflow #15

Open
adamgreig opened this issue Apr 26, 2020 · 0 comments
Open

DAP: Detect SWO buffer overflow #15

adamgreig opened this issue Apr 26, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@adamgreig
Copy link
Owner

Currently SWO buffer overflows are not detectable, as the read method has no way to distinguish how many times the DMA index might have wrapped around compared to the last read position. It might be possible to use the DMA half/full transfer complete flags in some fashion to detect overflow. Alternatively it might be possible to use the UART RXNE interrupt pending bit to poll for that in the application loop, but it seems higher overhead and messier.

@adamgreig adamgreig added the enhancement New feature or request label May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant