// Configure debug launch settings // Feel free to copy these and modify them for your debugger and MCU { "version": "0.2.0", "projectName": "IN12x5", "configurations": [ { "name": "JLink launch", "cwd": "${workspaceRoot}", "executable": "${workspaceRoot}/build/Skid.elf", "request": "launch", "type": "cortex-debug", "servertype": "jlink", "device": "STM32G030F6", "interface": "swd", "runToMain": true, // else it starts at reset handler - not interested "preLaunchTask": "Build all", // configured in tasks.json // "preLaunchCommands": ["Build all"], // you can execute command instead of task "svdFile": "STM32G030.svd", // Include svd to watch device peripherals "swoConfig": { "enabled": true, "cpuFrequency": 240000000, "swoFrequency": 4000000, "source": "probe", "decoders": [ { "label": "ITM port 0 output", "type": "console", "port": 0, "showOnStartup": true, "encoding": "ascii" } ] } }, { "name": "JLink attach", "cwd": "${workspaceRoot}", "executable": "${workspaceRoot}/build/Skid.elf", "request": "attach", "type": "cortex-debug", "servertype": "jlink", "device": "STM32G030F6", "interface": "swd", "runToMain": true, // else it starts at reset handler - not interested "preLaunchTask": "Build all", // configured in tasks.json // "preLaunchCommands": ["Build all"], // you can execute command instead of task "svdFile": "STM32G030.svd", // Include svd to watch device peripherals "swoConfig": { "enabled": true, "cpuFrequency": 240000000, "swoFrequency": 4000000, "source": "probe", "decoders": [ { "label": "ITM port 0 output", "type": "console", "port": 0, "showOnStartup": true, "encoding": "ascii" } ] } }, { "name": "STlink launch", "cwd": "${workspaceRoot}", "executable": "${workspaceRoot}/build/Skid.elf", "request": "launch", "type": "cortex-debug", "servertype": "stutil", "device": "STM32G030F6", "interface": "swd", "runToMain": true, // else it starts at reset handler - not interested "preLaunchTask": "Build all", // configured in tasks.json // "preLaunchCommands": ["Build all"], // you can execute command instead of task "svdFile": "STM32G030.svd", // Include svd to watch device peripherals "swoConfig": {} // currently (v1.7.0) not supported }, { "name": "STlink attach", "cwd": "${workspaceRoot}", "executable": "${workspaceRoot}/build/Skid.elf", "request": "attach", "type": "cortex-debug", "servertype": "stutil", "device": "STM32G030F6", "interface": "swd", "runToMain": true, // else it starts at reset handler - not interested "preLaunchTask": "Build all", // configured in tasks.json // "preLaunchCommands": ["Build all"], // you can execute command instead of task "svdFile": "STM32G030.svd", // Include svd to watch device peripherals "swoConfig": {} // currently (v1.7.0) not supported }, ] }