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

vscode launch.json add black magic probe debug config #12271

Merged
merged 2 commits into from
Jun 14, 2019

Conversation

dagar
Copy link
Member

@dagar dagar commented Jun 14, 2019

Screenshot from 2019-06-14 09-26-32

Somewhat unfortunately the address of the Black Magic probe has to be specified in the config.

https://github.com/PX4/Firmware/blob/0684d66067a55208070975af3d123ded377ee723/.vscode/launch.json#L175

@julianoes

@dagar dagar merged commit 5e058ae into PX4:master Jun 14, 2019
@dagar dagar deleted the pr-vscode_blackmagicprobe branch June 14, 2019 14:37
@julianoes
Copy link
Contributor

Nice, I will try that!

@julianoes
Copy link
Contributor

Selection_030

@dagar do you know what I'm missing? I have the svd files where they are supposed to be.

@dagar
Copy link
Member Author

dagar commented Jun 17, 2019

Can you try it manually with straight GDB first? I had a lot of trouble with the Black Magic Probe with F7 support broken in different releases. That's one of several reasons I switched to JLink. I have one you can take tomorrow.

@julianoes
Copy link
Contributor

Manually it works fine.

@dagar
Copy link
Member Author

dagar commented Jun 17, 2019

@julianoes
Copy link
Contributor

julianoes commented Jun 18, 2019

Oh this is the problem:

"/home/julianoes/src/Firmware/build/px4_sitl_default/bin/px4": not in executable format: File format not recognized

I needed to switch to the px4_fmu-v4 build in the cmake plugin and then build it, and then try again.

@julianoes
Copy link
Contributor

I had to chose the correct cmake build and the kit of VSCode needs to be "No active kit".

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.

2 participants