-
-
Notifications
You must be signed in to change notification settings - Fork 791
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
RTT not updating when single stepping #1930
Comments
|
It has been a while since I looked at this but I was using the RTT_WriteString statements to debug an application on a STM32F103 microcontroller. I agree that the BMP firmware is a fast GDB server implementation and I use it a fair bit. I was experimenting with logging in RTT_WriteString and I noticed it was delayed in the output of log statements when I was using "next" to step through functions. |
I have been experimenting with the RTT support in BMP as it looks perfect for fast logging output. However there seems to be an issue with how the polling for rtt IO is performed when stepping through code with gdb.
Currently
poll_rtt()
is only called in main.c:60 when the while loop hasgdb_target_running
true. It breaks out of this loop whengdb_target_running
goes false before calling thepoll_rtt()
function. Then the application is blocked waiting for new packets in thegdb_getpacket()
and there is no RTT polling performed.blackmagic/src/main.c
Lines 44 to 64 in 309a17c
I think this can be fixed by ensuring
poll_rtt()
is called on exit from this loop. I can work a up patch and pull request if this will help.The text was updated successfully, but these errors were encountered: