Skip to content

Commit

Permalink
[vscode] add stlink target for stm32f303/l432
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikaël BRIDAY committed Feb 27, 2024
1 parent 042a1be commit 9145d5b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,30 @@ end if%
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"cwd": "${workspaceFolder}",
"executable": "./build/% !OS::BUILD_S::APP_NAME %",
"name": "Debug on STM32 target",
"request": "launch", //"launch" => reload firmware, "attach" => just start debug session
"type": "cortex-debug",
"showDevDebugOutput": "none",
"servertype": "stutil",
"runToEntryPoint": "main",
"device": "STM32F303K8",
"v1": false,
"svdFile": "% !basePath %/machines/cortex-m/armv7em/stm32f303/CMSIS-ST/STM32F303x.svd",
{
"cwd": "${workspaceFolder}",
"executable": "./build/% !OS::BUILD_S::APP_NAME %",
"name": "Debug with ST-Link",
"request": "launch",
"type": "cortex-debug",
"runToEntryPoint": "main",
"showDevDebugOutput": "none",
"servertype": "stlink",
"device": "STM32F303K8",
"svdFile": "% !basePath %/machines/cortex-m/armv7em/stm32f303/CMSIS-ST/STM32F303x.svd",
},
{
"cwd": "${workspaceFolder}",
"executable": "./build/% !OS::BUILD_S::APP_NAME %",
"name": "Debug with ST-Util",
"request": "launch", //"launch" => reload firmware, "attach" => just start debug session
"type": "cortex-debug",
"showDevDebugOutput": "none",
"servertype": "stutil",
"runToEntryPoint": "main",
"device": "STM32F303K8",
"v1": false,
"svdFile": "% !basePath %/machines/cortex-m/armv7em/stm32f303/CMSIS-ST/STM32F303x.svd",
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,30 @@ end if%
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"cwd": "${workspaceFolder}",
"executable": "./build/% !OS::BUILD_S::APP_NAME %",
"name": "Debug on STM32 target",
"request": "launch", //"launch" => reload firmware, "attach" => just start debug session
"type": "cortex-debug",
"showDevDebugOutput": "none",
"servertype": "stutil",
"runToEntryPoint": "main",
"device": "STM32L432KC",
"v1": false,
"svdFile": "% !basePath %/machines/cortex-m/armv7em/stm32l432/CMSIS-ST/STM32L4x2.svd",
{
"cwd": "${workspaceFolder}",
"executable": "./build/% !OS::BUILD_S::APP_NAME %",
"name": "Debug with ST-Link",
"request": "launch",
"type": "cortex-debug",
"runToEntryPoint": "main",
"showDevDebugOutput": "none",
"servertype": "stlink",
"device": "STM32L432KC",
"svdFile": "% !basePath %/machines/cortex-m/armv7em/stm32l432/CMSIS-ST/STM32L4x2.svd",
},
{
"cwd": "${workspaceFolder}",
"executable": "./build/% !OS::BUILD_S::APP_NAME %",
"name": "Debug with ST-Util",
"request": "launch", //"launch" => reload firmware, "attach" => just start debug session
"type": "cortex-debug",
"showDevDebugOutput": "none",
"servertype": "stutil",
"runToEntryPoint": "main",
"device": "STM32L432KC",
"v1": false,
"svdFile": "% !basePath %/machines/cortex-m/armv7em/stm32l432/CMSIS-ST/STM32L4x2.svd",
}
]
}

0 comments on commit 9145d5b

Please sign in to comment.