Skip to content

Commit

Permalink
fix: standalone stm32 build and debug (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
EkelmansPh authored Sep 26, 2023
1 parent 8faceb4 commit 71bf177
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
25 changes: 21 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@
"configurations": [
{
"name": "stm32f767",
"cwd": "${workspaceFolder}",
"executable": "${command:cmake.launchTargetPath}",
"request": "launch",
"type": "cortex-debug",
"device": "STM32F767ZI",
"servertype": "external",
"showDevDebugOutput": "both",
"gdbTarget": "host.docker.internal:2331",
"overrideLaunchCommands": [
"monitor reset",
"-target-download",
"monitor reset"
],
"overrideRestartCommands": [ "monitor reset" ]
},
{
"name": "stm32f767 without container",
"cwd": "${workspaceRoot}",
"request": "launch",
"executable": "${command:cmake.launchTargetPath}",
Expand All @@ -14,21 +31,21 @@
"device": "STM32F767ZI"
},
{
"name": "stm32g431",
"name": "stm32g431 without container",
"cwd": "${workspaceRoot}",
"request": "launch",
"executable": "${command:cmake.launchTargetPath}",
"type": "cortex-debug",
"servertype": "stlink",
"servertype": "jlink",
"device": "STM32G431RB"
},
{
"name": "stm32g070",
"name": "stm32g070 without container",
"cwd": "${workspaceRoot}",
"request": "launch",
"executable": "${command:cmake.launchTargetPath}",
"type": "cortex-debug",
"servertype": "stlink",
"servertype": "jlink",
"device": "STM32G070RB"
}
]
Expand Down
7 changes: 1 addition & 6 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 24,
"patch": 0
},
"configurePresets": [
{
"name": "defaults",
Expand Down Expand Up @@ -43,11 +38,11 @@
"name": "stm32",
"hidden": true,
"inherits": "defaults",
"generator": "Ninja Multi-Config",
"environment": {
"CMAKE_TOOLCHAIN_FILE": ""
},
"cacheVariables": {
"generator": "Ninja Multi-Config",
"EMIL_GENERATE_PACKAGE_CONFIG": false,
"TARGET_MCU_VENDOR": "st"
}
Expand Down

0 comments on commit 71bf177

Please sign in to comment.