diff --git a/.vscode/launch.json b/.vscode/launch.json index 76129ae9fd2a480de24ae98b0f1f90a0e178d1a7..49e3199ced4ab2ef856a120abd4771ec77e1137a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -425,6 +425,62 @@ ] }, "cwd": "${workspaceRoot}" + }, + { + "type": "cortex-debug", + "request": "launch", + "servertype": "openocd", + "name": "c bare6 84Mhz", + "executable": "./target/thumbv7em-none-eabihf/debug/examples/bare6", + "configFiles": [ + "interface/stlink.cfg", + "target/stm32f4x.cfg" + ], + "postLaunchCommands": [ + "monitor reset init" + ], + "swoConfig": { + "enabled": true, + "cpuFrequency": 84000000, + "swoFrequency": 2000000, // you may try 1000000 if not working + "source": "probe", + "decoders": [ + { + "type": "console", + "label": "Name", + "port": 0 + } + ] + }, + "cwd": "${workspaceRoot}" + }, + { + "type": "cortex-debug", + "request": "launch", + "servertype": "openocd", + "name": "c bare7 16Mhz", + "executable": "./target/thumbv7em-none-eabihf/debug/examples/bare7", + "configFiles": [ + "interface/stlink.cfg", + "target/stm32f4x.cfg" + ], + "postLaunchCommands": [ + "continue" + ], + "swoConfig": { + "enabled": true, + "cpuFrequency": 16000000, + "swoFrequency": 2000000, // you may try 1000000 if not working + "source": "probe", + "decoders": [ + { + "type": "console", + "label": "Name", + "port": 0 + } + ] + }, + "cwd": "${workspaceRoot}" } ] } \ No newline at end of file