-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
654e859
commit f5605f0
Showing
4 changed files
with
306 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
// 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": [ | ||
{ | ||
"name": "Build & Debug Microcontroller - ST-Link", | ||
"cwd": "${workspaceFolder}", | ||
"type": "cortex-debug", | ||
"executable": "${command:cmake.launchTargetPath}", | ||
// Let CMake extension decide executable: "${command:cmake.launchTargetPath}" | ||
// Or fixed file path: "${workspaceFolder}/path/to/filename.elf" | ||
"request": "launch", | ||
"servertype": "stlink", | ||
"device": "STM32F413RGTx", //MCU used | ||
"interface": "swd", | ||
"serialNumber": "", //Set ST-Link ID if you use multiple at the same time | ||
"runToEntryPoint": "main", | ||
"svdFile": "${config:STM32VSCodeExtension.cubeCLT.path}/STMicroelectronics_CMSIS_SVD/STM32F413.svd", | ||
"v1": false, //Change it depending on ST Link version | ||
"serverpath": "${config:STM32VSCodeExtension.cubeCLT.path}/STLink-gdb-server/bin/ST-LINK_gdbserver", | ||
"stm32cubeprogrammer":"${config:STM32VSCodeExtension.cubeCLT.path}/STM32CubeProgrammer/bin", | ||
"stlinkPath": "${config:STM32VSCodeExtension.cubeCLT.path}/STLink-gdb-server/bin/ST-LINK_gdbserver", | ||
"armToolchainPath": "${config:STM32VSCodeExtension.cubeCLT.path}/GNU-tools-for-STM32/bin", | ||
"gdbPath":"${config:STM32VSCodeExtension.cubeCLT.path}/GNU-tools-for-STM32/bin/arm-none-eabi-gdb", | ||
"serverArgs": ["-m","0"], | ||
"preLaunchTask": "Build project" | ||
/* If you use external loader, add additional arguments */ | ||
//"serverArgs": ["--extload", "path/to/ext/loader.stldr"], | ||
}, | ||
{ | ||
"name": "Attach to Microcontroller - ST-Link", | ||
"cwd": "${workspaceFolder}", | ||
"type": "cortex-debug", | ||
"executable": "${command:cmake.launchTargetPath}", | ||
// Let CMake extension decide executable: "${command:cmake.launchTargetPath}" | ||
// Or fixed file path: "${workspaceFolder}/path/to/filename.elf" | ||
"request": "attach", | ||
"servertype": "stlink", | ||
"device": "STM32F413RGTx", //MCU used | ||
"interface": "swd", | ||
"serialNumber": "", //Set ST-Link ID if you use multiple at the same time | ||
"runToEntryPoint": "main", | ||
"svdFile": "${config:STM32VSCodeExtension.cubeCLT.path}/STMicroelectronics_CMSIS_SVD/STM32F413.svd", | ||
"v1": false, //Change it depending on ST Link version | ||
"serverpath": "${config:STM32VSCodeExtension.cubeCLT.path}/STLink-gdb-server/bin/ST-LINK_gdbserver", | ||
"stm32cubeprogrammer":"${config:STM32VSCodeExtension.cubeCLT.path}/STM32CubeProgrammer/bin", | ||
"stlinkPath": "${config:STM32VSCodeExtension.cubeCLT.path}/STLink-gdb-server/bin/ST-LINK_gdbserver", | ||
"armToolchainPath": "${config:STM32VSCodeExtension.cubeCLT.path}/GNU-tools-for-STM32/bin", | ||
"gdbPath":"${config:STM32VSCodeExtension.cubeCLT.path}/GNU-tools-for-STM32/bin/arm-none-eabi-gdb", | ||
"serverArgs": ["-m","0"], | ||
/* If you use external loader, add additional arguments */ | ||
//"serverArgs": ["--extload", "path/to/ext/loader.stldr"], | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"version": "2.0.0", | ||
"windows": { | ||
"options": { | ||
"shell": { | ||
"executable": "cmd.exe", | ||
"args": ["/d", "/c"] | ||
} | ||
} | ||
}, | ||
"tasks": [ | ||
{ | ||
"type": "cppbuild", | ||
"label": "Build project", | ||
"command": "cmake", | ||
"args": ["--build", "${command:cmake.buildDirectory}", "-j", "8"], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": ["$gcc"], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"type": "shell", | ||
"label": "Re-build project", | ||
"command": "cmake", | ||
"args": ["--build", "${command:cmake.buildDirectory}", "--clean-first", "-v", "-j", "8"], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": ["$gcc"] | ||
}, | ||
{ | ||
"type": "shell", | ||
"label": "Clean project", | ||
"command": "cmake", | ||
"args": ["--build", "${command:cmake.buildDirectory}", "--target", "clean"], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"type": "shell", | ||
"label": "CubeProg: Flash project (SWD)", | ||
"command": "STM32_Programmer_CLI", | ||
"args": [ | ||
"--connect", | ||
"port=swd", | ||
"--download", | ||
"${command:cmake.launchTargetPath}", | ||
// Let CMake extension decide executable: "${command:cmake.launchTargetPath}", | ||
"-hardRst", // Hardware reset - if rst pin is connected | ||
"-rst", // Software reset (backup) | ||
"--start" // Start execution | ||
], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"type": "shell", | ||
"label": "CubeProg: Flash project with defined serial number (SWD) - you must set serial number first", | ||
"command": "STM32_Programmer_CLI", | ||
"args": [ | ||
"--connect", | ||
"port=swd", | ||
"sn=<yourserialnumber>", | ||
"--download", | ||
"${command:cmake.launchTargetPath}", | ||
// Let CMake extension decide executable: "${command:cmake.launchTargetPath}", | ||
"-hardRst", // Hardware reset - if rst pin is connected | ||
"-rst", // Software reset (backup) | ||
"--start" // Start execution | ||
], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"type": "shell", | ||
"label": "CubeProg: List all available communication interfaces", | ||
"command": "STM32_Programmer_CLI", | ||
"args": ["--list"], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
// 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": [ | ||
{ | ||
"name": "Build & Debug Microcontroller - ST-Link", | ||
"cwd": "${workspaceFolder}", | ||
"type": "cortex-debug", | ||
"executable": "${command:cmake.launchTargetPath}", | ||
// Let CMake extension decide executable: "${command:cmake.launchTargetPath}" | ||
// Or fixed file path: "${workspaceFolder}/path/to/filename.elf" | ||
"request": "launch", | ||
"servertype": "stlink", | ||
"device": "STM32F413RGTx", //MCU used | ||
"interface": "swd", | ||
"serialNumber": "", //Set ST-Link ID if you use multiple at the same time | ||
"runToEntryPoint": "main", | ||
"svdFile": "${config:STM32VSCodeExtension.cubeCLT.path}/STMicroelectronics_CMSIS_SVD/STM32F413.svd", | ||
"v1": false, //Change it depending on ST Link version | ||
"serverpath": "${config:STM32VSCodeExtension.cubeCLT.path}/STLink-gdb-server/bin/ST-LINK_gdbserver", | ||
"stm32cubeprogrammer":"${config:STM32VSCodeExtension.cubeCLT.path}/STM32CubeProgrammer/bin", | ||
"stlinkPath": "${config:STM32VSCodeExtension.cubeCLT.path}/STLink-gdb-server/bin/ST-LINK_gdbserver", | ||
"armToolchainPath": "${config:STM32VSCodeExtension.cubeCLT.path}/GNU-tools-for-STM32/bin", | ||
"gdbPath":"${config:STM32VSCodeExtension.cubeCLT.path}/GNU-tools-for-STM32/bin/arm-none-eabi-gdb", | ||
"serverArgs": ["-m","0"], | ||
"preLaunchTask": "Build project" | ||
/* If you use external loader, add additional arguments */ | ||
//"serverArgs": ["--extload", "path/to/ext/loader.stldr"], | ||
}, | ||
{ | ||
"name": "Attach to Microcontroller - ST-Link", | ||
"cwd": "${workspaceFolder}", | ||
"type": "cortex-debug", | ||
"executable": "${command:cmake.launchTargetPath}", | ||
// Let CMake extension decide executable: "${command:cmake.launchTargetPath}" | ||
// Or fixed file path: "${workspaceFolder}/path/to/filename.elf" | ||
"request": "attach", | ||
"servertype": "stlink", | ||
"device": "STM32F413RGTx", //MCU used | ||
"interface": "swd", | ||
"serialNumber": "", //Set ST-Link ID if you use multiple at the same time | ||
"runToEntryPoint": "main", | ||
"svdFile": "${config:STM32VSCodeExtension.cubeCLT.path}/STMicroelectronics_CMSIS_SVD/STM32F413.svd", | ||
"v1": false, //Change it depending on ST Link version | ||
"serverpath": "${config:STM32VSCodeExtension.cubeCLT.path}/STLink-gdb-server/bin/ST-LINK_gdbserver", | ||
"stm32cubeprogrammer":"${config:STM32VSCodeExtension.cubeCLT.path}/STM32CubeProgrammer/bin", | ||
"stlinkPath": "${config:STM32VSCodeExtension.cubeCLT.path}/STLink-gdb-server/bin/ST-LINK_gdbserver", | ||
"armToolchainPath": "${config:STM32VSCodeExtension.cubeCLT.path}/GNU-tools-for-STM32/bin", | ||
"gdbPath":"${config:STM32VSCodeExtension.cubeCLT.path}/GNU-tools-for-STM32/bin/arm-none-eabi-gdb", | ||
"serverArgs": ["-m","0"], | ||
/* If you use external loader, add additional arguments */ | ||
//"serverArgs": ["--extload", "path/to/ext/loader.stldr"], | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"version": "2.0.0", | ||
"windows": { | ||
"options": { | ||
"shell": { | ||
"executable": "cmd.exe", | ||
"args": ["/d", "/c"] | ||
} | ||
} | ||
}, | ||
"tasks": [ | ||
{ | ||
"type": "cppbuild", | ||
"label": "Build project", | ||
"command": "cmake", | ||
"args": ["--build", "${command:cmake.buildDirectory}", "-j", "8"], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": ["$gcc"], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"type": "shell", | ||
"label": "Re-build project", | ||
"command": "cmake", | ||
"args": ["--build", "${command:cmake.buildDirectory}", "--clean-first", "-v", "-j", "8"], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": ["$gcc"] | ||
}, | ||
{ | ||
"type": "shell", | ||
"label": "Clean project", | ||
"command": "cmake", | ||
"args": ["--build", "${command:cmake.buildDirectory}", "--target", "clean"], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"type": "shell", | ||
"label": "CubeProg: Flash project (SWD)", | ||
"command": "STM32_Programmer_CLI", | ||
"args": [ | ||
"--connect", | ||
"port=swd", | ||
"--download", | ||
"${command:cmake.launchTargetPath}", | ||
// Let CMake extension decide executable: "${command:cmake.launchTargetPath}", | ||
"-hardRst", // Hardware reset - if rst pin is connected | ||
"-rst", // Software reset (backup) | ||
"--start" // Start execution | ||
], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"type": "shell", | ||
"label": "CubeProg: Flash project with defined serial number (SWD) - you must set serial number first", | ||
"command": "STM32_Programmer_CLI", | ||
"args": [ | ||
"--connect", | ||
"port=swd", | ||
"sn=<yourserialnumber>", | ||
"--download", | ||
"${command:cmake.launchTargetPath}", | ||
// Let CMake extension decide executable: "${command:cmake.launchTargetPath}", | ||
"-hardRst", // Hardware reset - if rst pin is connected | ||
"-rst", // Software reset (backup) | ||
"--start" // Start execution | ||
], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"type": "shell", | ||
"label": "CubeProg: List all available communication interfaces", | ||
"command": "STM32_Programmer_CLI", | ||
"args": ["--list"], | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |