-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
semihosting on the "blue pill" board #89
Comments
The VSCode extension does not have explicit support for semihosting. I believe the CLI interface |
From my tests, it seems to work as intended: First run uses However, with the VSCode extension, debugging just gets stuck at the end of the program: So yeah, I'd like to use semihosting to automatically terminate the debugging session in the extension as well. Unfortunately, I have zero experience with vscode extension development and my schedule doesn't allow me to get into that right now, so I just hope this could be somewhat easily fixable 😇 |
For what it is worth, I don't believe there will be any changes required to the VSCode extension. This can be implemented by updating the probe-rs dap server component only, using a similar approach as to that used in the CLI. |
Still not sure where to look next then. probe-rs/dap-rs? probe-rs/probe-rs? |
This is the code for the 'master loop' of the debugger, where it synchronizes status of the VSCode/DAP client with that of the target, and executes requests, marshals data, etc. Specifically line 120 will do the Feel free to check in if you want additional pointers. Always happy to help. |
Closing this as NIF until someone is willing to PR this fix :) |
Hello probe-rs,
I can't seem to get semihosting to work with the "knurling-rs app-template" and my STM32F103C8T6 "blue pill" board. I'm using VSCode and the "Debugger for probe-rs" behind an STLink V2:
Now, whenever I start debugging anything, I end up in line 212 of cortex-m-semihosting/src/lib.rs, indicative of a failed semihosting attempt.
In a more "bare" setup (without knurling-rs, using the "Cortex-Debug" VSC extension and a manually setup "cargo build" prelaunch task) I was able to resolve the same issue leveraging "preLaunchCommands" for the gdb process, i.e.
"monitor arm semihosting enable"
. I can't seem to find a similar setting with the arguably better approach using probe-rs and knurling.I've selfhosted both experimental projects in my gitea instance and added a containers.dev config for convenience.
Any ideas forward?
Crossposted at knurling-rs/app-template/issues/77
The text was updated successfully, but these errors were encountered: