Skip to content

Peripherals, registers, memory and disassemble all read "There is no data provider registered that can provide view data." when using the attached SVD file. #1022

@AndrewCapon

Description

@AndrewCapon

Describe the bug

Peripherals, registers, memory and disassemble all read "There is no data provider registered that can provide view data." when using the attached SVD file.

This SVD file works fine in STM32CubeIde.

To Reproduce

Start debugger with stlink attached to a stm32h725
Set breakpoint, look at windows.

Expected behavior

Expect to see some data.

Latest versions used of VSCode and Cortex Debug.

Please include launch.json

Note: We are unlikely to look at the issue if you do not supply this

{
  "version": "0.2.0",
  "configurations": [
      {
          "name": "Debug (OpenOCD)",
          "cwd": "${workspaceRoot}",
          "executable": "${workspaceRoot}/build/debug.elf",
          "request": "attach",
          "type": "cortex-debug",
          "servertype": "openocd",
          "interface": "swd",
          "device": "STM32H725IETx",
          "svdFile": "${workspaceRoot}/STM32H725.svd",
          "searchDir": ["/Volumes/X82/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.debug.openocd_2.2.0.202401261111/resources/openocd/st_scripts"],
          "configFiles": [
              "${workspaceRoot}/nts-1_mkii.cfg"
          ],
          "postAttachCommands": [
            "dir ${workspaceRoot}",
            "c"
          ],
      }
  ]
}

Attach text from Debug Console

Please enable debug output in your launch.json ("showDevDebugOutput": "raw"). It this is too large, please attach it as a file

Cortex-Debug: VSCode debugger extension version 1.12.1 git(652d042). Usage info: https://github.com/Marus/cortex-debug#usage
"configuration": {
    "name": "Debug (OpenOCD)",
    "cwd": "/Volumes/X82/Development/Korg/nts1mkiiExample",
    "executable": "/Volumes/X82/Development/Korg/nts1mkiiExample/build/debug.elf",
    "request": "attach",
    "type": "cortex-debug",
    "servertype": "openocd",
    "interface": "swd",
    "device": "STM32H725IETx",
    "svdFile": "/Volumes/X82/Development/Korg/nts1mkiiExample/STM32H725.svd",
    "searchDir": [
        "/Volumes/X82/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.debug.openocd_2.2.0.202401261111/resources/openocd/st_scripts"
    ],
    "configFiles": [
        "/Volumes/X82/Development/Korg/nts1mkiiExample/nts-1_mkii.cfg"
    ],
    "postAttachCommands": [
        "dir /Volumes/X82/Development/Korg/nts1mkiiExample",
        "c"
    ],
    "showDevDebugOutput": "raw",
    "__configurationTarget": 6,
    "gdbServerConsolePort": 55878,
    "pvtAvoidPorts": [],
    "chainedConfigurations": {
        "enabled": false
    },
    "debuggerArgs": [],
    "swoConfig": {
        "enabled": false,
        "decoders": [],
        "cpuFrequency": 0,
        "swoFrequency": 0,
        "source": "probe"
    },
    "rttConfig": {
        "enabled": false,
        "decoders": []
    },
    "graphConfig": [],
    "preLaunchCommands": [],
    "postLaunchCommands": [],
    "preAttachCommands": [],
    "preRestartCommands": [],
    "postRestartCommands": [],
    "preResetCommands": [],
    "postResetCommands": [],
    "serverpath": "/Volumes/X82/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.openocd.macos64_2.3.200.202312181736/tools/bin/openocd",
    "toolchainPrefix": "arm-none-eabi",
    "extensionPath": "/Users/andrewcapon/.vscode/extensions/marus25.cortex-debug-1.12.1",
    "registerUseNaturalFormat": true,
    "variableUseNaturalFormat": true,
    "pvtVersion": "1.12.1",
    "__sessionId": "d5ce855b-5207-4a41-9d7f-478fbb275f4c",
    "pvtShowDevDebugOutput": "raw"
}
Reading symbols from arm-none-eabi-objdump --syms -C -h -w /Volumes/X82/Development/Korg/nts1mkiiExample/build/debug.elf
Reading symbols from arm-none-eabi-nm --defined-only -S -l -C -p /Volumes/X82/Development/Korg/nts1mkiiExample/build/debug.elf
Launching GDB: arm-none-eabi-gdb -q --interpreter=mi2
1-gdb-version
Launching gdb-server: /Volumes/X82/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.openocd.macos64_2.3.200.202312181736/tools/bin/openocd -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s /Volumes/X82/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.debug.openocd_2.2.0.202401261111/resources/openocd/st_scripts -f /Users/andrewcapon/.vscode/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl -f /Volumes/X82/Development/Korg/nts1mkiiExample/nts-1_mkii.cfg
    Please check TERMINAL tab (gdb-server) for output from /Volumes/X82/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.openocd.macos64_2.3.200.202312181736/tools/bin/openocd
Finished reading symbols from objdump: Time: 24 ms
Finished reading symbols from nm: Time: 30 ms
-> =thread-group-added,id="i1"
-> ~"GNU gdb (GNU Arm Embedded Toolchain 10.3-2021.10) 10.2.90.20210621-git\n"
-> ~"Copyright (C) 2021 Free Software Foundation, Inc.\n"
-> ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."
-> ~"\nType \"show copying\" and \"show warranty\" for details.\n"
-> ~"This GDB was configured as \"--host=x86_64-apple-darwin10 --target=arm-none-eabi\".\n"
-> ~"Type \"show configuration\" for configuration details.\n"
-> ~"For bug reporting instructions, please see:\n"
-> ~"<https://www.gnu.org/software/gdb/bugs/>.\n"
-> ~"Find the GDB manual and other documentation resources online at:\n    <http://www.gnu.org/software/gdb/documentation/>."
-> ~"\n\n"
-> ~"For help, type \"help\".\n"
-> ~"Type \"apropos word\" to search for commands related to \"word\".\n"
-> 1^done
2-gdb-set mi-async on
-> 2^done
3-interpreter-exec console "set print demangle on"
-> 3^done
4-interpreter-exec console "set print asm-demangle on"
-> =cmd-param-changed,param="print asm-demangle",value="on"
-> 4^done
5-enable-pretty-printing
-> 5^done
6-interpreter-exec console "source /Users/andrewcapon/.vscode/extensions/marus25.cortex-debug-1.12.1/support/gdbsupport.init"
-> 6^done
7-interpreter-exec console "source /Users/andrewcapon/.vscode/extensions/marus25.cortex-debug-1.12.1/support/gdb-swo.init"
-> =cmd-param-changed,param="language",value="c"
-> =cmd-param-changed,param="language",value="auto"
-> 7^done
8-interpreter-exec console "set output-radix 0xa"
-> ~"Output radix now set to decimal 10, hex a, octal 12.\n"
Output radix now set to decimal 10, hex a, octal 12.
-> 8^done
9-interpreter-exec console "set input-radix 0xa"
-> ~"Input radix now set to decimal 10, hex a, octal 12.\n"
Input radix now set to decimal 10, hex a, octal 12.
-> 9^done
10-file-exec-and-symbols "/Volumes/X82/Development/Korg/nts1mkiiExample/build/debug.elf"
-> 10^done
11-target-select extended-remote localhost:50000
-> =thread-group-started,id="i1",pid="42000"
-> =thread-created,id="1",group-id="i1"
-> ~"0x00000000 in ?? ()\n"
0x00000000 in ?? ()
-> *stopped,frame={addr="0x00000000",func="??",args=[],arch="armv7e-m"},thread-id="1",stopped-threads="all"
mi2.status = stopped
Program stopped, probably due to a reset and/or halt issued by debugger
-> 11^connected
12-interpreter-exec console "monitor halt"
-> @"[STM32H725IETx.cm7] halted due to debug-request, current mode: Thread \n"
[STM32H725IETx.cm7] halted due to debug-request, current mode: Thread
-> @"xPSR: 0x61000000 pc: 0x0800b5dc psp: 0x24001658\n"
xPSR: 0x61000000 pc: 0x0800b5dc psp: 0x24001658
-> 12^done
13-interpreter-exec console "dir /Volumes/X82/Development/Korg/nts1mkiiExample"
-> ~"Source directories searched: /Volumes/X82/Development/Korg/nts1mkiiExample:$cdir:$cwd\n"
Source directories searched: /Volumes/X82/Development/Korg/nts1mkiiExample:$cdir:$cwd
-> 13^done
14-exec-continue --all
-> 14^running
-> *running,thread-id="all"
mi2.status = running
15-exec-interrupt
-> 15^done
-> ~"\nProgram"

Program
-> ~" received signal SIGINT, Interrupt.\n"
 received signal SIGINT, Interrupt.
-> ~"0x08028690 in ?? ()\n"
0x08028690 in ?? ()
-> *stopped,reason="signal-received",signal-name="SIGINT",signal-meaning="Interrupt",frame={addr="0x08028690",func="??",args=[],arch="armv7e-m"},thread-id="1",stopped-threads="all"
mi2.status = stopped
16-break-insert "/Volumes/X82/Development/Korg/nts1mkiiExample/NtsDebugOut.c:776"
-> 16^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000150bc",func="DebugOut",file="NtsDebugOut.c",fullname="/Volumes/X82/Development/Korg/nts1mkiiExample/NtsDebugOut.c",line="778",thread-groups=["i1"],times="0",original-location="/Volumes/X82/Development/Korg/nts1mkiiExample/NtsDebugOut.c:776"}
17-exec-continue --all
-> 17^running
-> *running,thread-id="all"
mi2.status = running

STM32H725.svd.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions