-
-
Notifications
You must be signed in to change notification settings - Fork 40.4k
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
Add instructions for debugging ARM with VSCode+BMP. #11217
Conversation
Thank you for your contribution! |
Thank you for your contribution! |
Aside from that, tested this out and it works well. Though, would it worth be adding a section for adding tasks to vscode, especially for the prelaunchtask? Not here necessarily, but just in general. |
Thank you for your contribution! |
Co-authored-by: Drashna Jaelre <drashna@live.com>
fb5e5e1
to
33e4a74
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a little note on the compiler flags
docs/other_vscode.md
Outdated
OPT = 0 | ||
OPT_DEFS += -g |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about OPT = g
as this provides good debug ability and still adds a little bit of optimization. Debug information is generated by default for all binaries, but it would be better to default to -g3
by adding DEBUG = 3
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me, no real preference; if you want to make a suggestion on the PR for what it should look like I'll be more than happy to commit it.
Co-authored-by: Stefan Kerkmann <karlk90@pm.me>
Description
Adds some documentation to the VSCode documentation page to describe a method do debug ARM MCUs using cortex-debug and a Black Magic Probe.
Types of Changes
Checklist