Skip to content

Commit

Permalink
Add debug config
Browse files Browse the repository at this point in the history
  • Loading branch information
yh-sb committed Nov 26, 2024
2 parents eadb848 + ecbd1a0 commit 806f11b
Show file tree
Hide file tree
Showing 4 changed files with 958 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"configurations":
[
{
"name": "mcu-cpp",
"compileCommands": "build/compile_commands.json"
}
],
"version": 4
}
27 changes: 27 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"version": "0.2.0",
"configurations":
[
{
"name": "stm32f4",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/stm32f4.elf",
"cwd": "${workspaceFolder}/build",
"internalConsoleOptions": "neverOpen",
"miDebuggerPath": "arm-none-eabi-gdb",
"preLaunchTask": "gdbserver",
"postDebugTask": "hide terminal",
"showDisplayString": true,
"visualizerFile": "${workspaceFolder}/.vscode/stl.gcc.natvis",
"debugServerPath": "JLinkGDBserverCL",
"debugServerArgs": "-device STM32F407VG -if SWD -speed auto -strict -nogui -singlerun",
"serverStarted":"Connected to target",
"postRemoteConnectCommands":
[
{ "text": "target remote localhost:2331" },
{ "text": "monitor reset" }
]
}
]
}
Loading

0 comments on commit 806f11b

Please sign in to comment.