diff --git a/AMS_Master_Code/.gitignore b/AMS_Master_Code/.gitignore index 3ca1f42..c2c4572 100644 --- a/AMS_Master_Code/.gitignore +++ b/AMS_Master_Code/.gitignore @@ -1,4 +1,4 @@ -/.vscode/ +/.vscode/* /build/ /.cache/ /.idea/ @@ -8,3 +8,4 @@ compile_commands.json STM32Make.make openocd.cfg .stm32env +!/.vscode/launch.json \ No newline at end of file diff --git a/AMS_Master_Code/.vscode/launch.json b/AMS_Master_Code/.vscode/launch.json new file mode 100644 index 0000000..8dd8e26 --- /dev/null +++ b/AMS_Master_Code/.vscode/launch.json @@ -0,0 +1,60 @@ +{ + "configurations": [ + { + "showDevDebugOutput": "none", + "cwd": "${workspaceRoot}", + "executable": "./build/debug/AMS_Master_Nucleo.elf", + "name": "Debug STM32", + "request": "launch", + "type": "cortex-debug", + "servertype": "openocd", + "preLaunchTask": "Build STM", + "device": "stm32h7a3xxq.s", + "configFiles": [ + "openocd.cfg" + ], + "swoConfig": { + "enabled": true, + "source": "probe", + "swoFrequency": 10666666, + "cpuFrequency": 64000000, + "decoders": [ + { + "port": 0, + "type": "console", + "label": "SWO LOG", + "encoding": "ascii" + } + ] + } + }, + { + "showDevDebugOutput": "none", + "cwd": "${workspaceRoot}", + "executable": "./build/debug/AMS_Master_Nucleo.elf", + "name": "Attach STM32", + "request": "attach", + "type": "cortex-debug", + "servertype": "openocd", + "preLaunchTask": "Build STM", + "device": "stm32h7a3xxq.s", + "configFiles": [ + "openocd.cfg" + ], + "swoConfig": { + "enabled": true, + "source": "probe", + "swoFrequency": 10666666, + "cpuFrequency": 64000000, + "decoders": [ + { + "port": 0, + "type": "console", + "label": "SWO LOG", + "encoding": "ascii" + } + ] + } + } + ] +} \ No newline at end of file