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

Probe-rs VSCode support #72

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,74 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
// "preLaunchTask": "Build Release Communication",
"type": "probe-rs-debug",
"request": "launch",
"name": "Probe-rs Debug Recovery",
"chip": "ATSAME51J20A",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong chip, should be ATSAME51J18A.

"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/recovery",
}
]
},
{
"type": "probe-rs-debug",
"request": "launch",
"name": "Probe-rs Debug Camera",
"chip": "ATSAME51J20A",
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/camera",
}
]
},
{
"type": "probe-rs-debug",
"request": "launch",
"name": "Probe-rs Debug Power",
"chip": "ATSAME51J20A",
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/debug/power",
}
]
},
{
// "preLaunchTask": "Build Release Communication",
"type": "probe-rs-debug",
"request": "launch",
"name": "Probe-rs Debug Recovery (Release)",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kinda confusing since we can either have a debug or release build. I'd remove the Debug part of this and for any other release configs. Also, for boards like the sensor v2 board we need to use the STM32H733VGTx chip. You may notice that the sensor v2 board does not exist in this branch, so I'd like you to practice updating your branch to keep your changes and merge master in so you can have the newest changes available.

"chip": "ATSAME51J20A",
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/release/recovery",
}
]
},
{
"type": "probe-rs-debug",
"request": "launch",
"name": "Probe-rs Debug Camera (Release)",
"chip": "ATSAME51J20A",
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/release/camera",
}
]
},
{
"type": "probe-rs-debug",
"request": "launch",
"name": "Probe-rs Debug Power (Release)",
"chip": "ATSAME51J20A",
"coreConfigs": [
{
"programBinary": "${workspaceFolder}/target/thumbv7em-none-eabihf/release/power",
}
]
},
{
"type": "cortex-debug",
"request": "launch",
Expand Down
Loading