Closed dhinault closed 5 years ago
Hi
this worked for me some time ago:
{
"name": "Cortex_Debug",
"type": "cortex-debug",
"servertype": "openocd",
"request": "launch",
"program": "${workspaceRoot}/build/path...",
"executable": "${workspaceRoot}/build/path...",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": false,
"debugServerArgs": "-f interface/stlink-v2-1.cfg -f target/stm32l0.cfg",
"svdFile": "${workspaceFolder}/cmake/STM32L0_svd_V1.2/STM32L0x3.svd",
"configFiles": [
"interface/stlink-v2-1.cfg",
"target/stm32l0.cfg"
],
"serverLaunchTimeout": 10000,
"filterStderr": true,
"filterStdout": false,
"serverStarted": "Info\\ :\\ [\\w\\d\\.]*:\\ hardware",
"setupCommands": [
{ "text": "cd ${workspaceRoot}/build/path..." },
{ "text": "file path..", "description": "load file", "ignoreFailures": false},
{ "text": "target extended-remote localhost:3333", "description": "connect to target", "ignoreFailures": false },
{ "text": "monitor reset halt", "description": "perform a reset and halt the target", "ignoreFailures": false },
{ "text": "load", "description": "flash target", "ignoreFailures": false },
{ "text": "set output-radix 16", "description": "set the default numeric base to 16", "ignoreFailures": false }
],
"logging": {
"moduleLoad": true,
"trace": true,
"engineLogging": true,
"programOutput": true,
"exceptions": true
},
"MIMode": "gdb",
"MIDebuggerPath": "c:/path..",
"debugServerPath": "c:/path..."
},
EDIT: You need to update the settings with your path everywhere.
I am looking for an example configuration to use the Cortex-debug extension or another extension to be able to view the MCU registers.