OpenOCD with ST-LINK v3 mini (resolved)

i am cant test right now but pretty sure this is my config file

{
  "version": "0.2.0",
  "projectName": "stm32h750x",
  "configurations": [
      {
          "cwd": "${workspaceRoot}",
          "executable":"${workspaceRoot}/build/screen.elf",
          "name": "Debug with JLink",
          "request": "launch",
          "type": "cortex-debug",
          "device": "stm32h7x.cpu0",//"STM32H750x",
          "runToEntryPoint": "main",
          "showDevDebugOutput": "none",
          "svdFile": "./.vscode/STM32H750x.svd",
          "configFiles": [
          "target/stm32h7x.cfg",
            ],
          "servertype": "jlink"
      },
      {
          "name": "Cortex Debug",
  "cwd": "${workspaceRoot}",
  "executable": "${workspaceRoot}/build/screen.elf",
  "request": "launch",
  "type": "cortex-debug",
  "servertype": "openocd",
  "configFiles": [
  "interface/stlink.cfg",
  "target/stm32h7x.cfg",
  ],
  "openOCDLaunchCommands": ["init",
  "reset init","gdb_breakpoint_override hard",],
  "runToEntryPoint": "main",
  "liveWatch": {
    "enabled": true,
    "samplesPerSecond": 4
  }
  
      },
  
      

      {
          "name": "STlinkdebug",
          "cwd": "${workspaceRoot}",
          "executable": "${workspaceRoot}/build/screen.elf",
          "request": "launch",
          "type": "cortex-debug",
          "servertype": "stlink",
          "showDevDebugOutput": "both",
          "device": "STM32H750x",
          "interface": "jtag",
          "svdFile": "./.vscode/STM32H750x.svd",
       //   "runToMain": true,
          "swoConfig": {
              "enabled": true,
              "cpuFrequency": 480000000,
              "swoFrequency": 1000000,
              "source": "probe",
              "decoders": [
                  {
                      "label": "ITM port 0 output",
                      "type": "console",
                      "port": 0,
                      "showOnStartup": true,
                      "encoding": "ascii"
                  }
              ]
          }
      },
  
  ]
}

1 Like

obv change your elf name to your proj name

thanks,
but it still doesn’t work for me…
on what system are you exactly?

OSX 12.2.1 M1 is my system