Skip to content

Commit

Permalink
add os specific in launch.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Huibean committed Aug 22, 2024
1 parent d71adb8 commit fd1eab7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ tools/
*~
*.map
*.o
.DS_Store
.vscode/settings.json
25 changes: 21 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,18 @@
"${workspaceFolder}/obj/openocd.cfg",
],
"showDevDebugOutput": "none",

"serverpath": "${workspaceFolder}${/}tools${/}${config:OS}${/}openocd${/}bin${/}openocd",
"armToolchainPath": "${workspaceRoot}/tools/${config:OS}/xpack-arm-none-eabi-gcc-10.3.1-2.3/bin",
"osx": {
"serverpath": "${workspaceFolder}/tools/macos/openocd/bin/openocd",
"armToolchainPath": "${workspaceFolder}/tools/macos/xpack-arm-none-eabi-gcc-10.3.1-2.3/bin"
},
"linux": {
"serverpath": "${workspaceFolder}/tools/linux/openocd/bin/openocd",
"armToolchainPath": "${workspaceFolder}/tools/linux/xpack-arm-none-eabi-gcc-10.3.1-2.3/bin"
},
"windows": {
"serverpath": "${workspaceFolder}\\tools\\windows\\openocd\\bin\\openocd",
"armToolchainPath": "${workspaceFolder}\\tools\\windows\\xpack-arm-none-eabi-gcc-10.3.1-2.3\\bin"
}
},

// JLink configuration
Expand All @@ -32,7 +41,15 @@
"name": "AM32 JLink",
"cwd": "${workspaceRoot}",
"device" : "-AT32F421K8U7",
"gdbPath": "${workspaceRoot}/tools/${config:OS}/xpack-arm-none-eabi-gcc-10.3.1-2.3/bin/arm-none-eabi-gdb",
"osx": {
"gdbPath": "${workspaceRoot}/tools/macos/xpack-arm-none-eabi-gcc-10.3.1-2.3/bin/arm-none-eabi-gdb"
},
"linux": {
"gdbPath": "${workspaceRoot}/tools/linux/xpack-arm-none-eabi-gcc-10.3.1-2.3/bin/arm-none-eabi-gdb"
},
"windows": {
"gdbPath": "${workspaceRoot}\\tools\\windows\\xpack-arm-none-eabi-gcc-10.3.1-2.3\\bin\\arm-none-eabi-gdb"
},
"executable": "${workspaceRoot}/obj/debug.elf",
"showDevDebugOutput": "raw",
"servertype" : "jlink",
Expand Down
File renamed without changes.

0 comments on commit fd1eab7

Please sign in to comment.