Skip to content

Commit

Permalink
added vscode support
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Aug 20, 2024
1 parent 8d3862d commit 3de7d53
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
// STLink configuration
{
"name": "AM32 STLink",
"cwd": "${workspaceFolder}",
"executable": "${workspaceFolder}/obj/debug.elf",
"liveWatch": {
"enabled": true,
"samplesPerSecond": 4,
},
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
"configFiles": [
"${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",
},

// JLink configuration
{
"type": "cortex-debug",
"request": "launch",
"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",
"executable": "${workspaceRoot}/obj/debug.elf",
"showDevDebugOutput": "raw",
"servertype" : "jlink",
"swoConfig": {
"enabled": false,
},
"serialNumber": "",
"liveWatch": {
"enabled": true,
"samplesPerSecond": 4
}
}
]
}
2 changes: 2 additions & 0 deletions .vscode/platform.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
console.log(process.platform)

27 changes: 27 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"OS": "windows",
"makefile.makePath": "tools/windows/make/bin/make.exe",

//"OS": "linux",
//"makefile.makePath": "/usr/bin/make",

"makefile.configurations": [
{
"name": "MakeSingle",
"makeArgs": [
"-j1"
]
},
{
"name": "MakeParallel-8",
"makeArgs": [
"-j8"
]
},
{
"name": "MakeParallel-MAX",
"makeArgs": [
"-j"
]
}
}

0 comments on commit 3de7d53

Please sign in to comment.