Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
AndrewCapon opened this issue May 30, 2024 · 6 comments

Comments

@AndrewCapon
Copy link

AndrewCapon commented May 30, 2024

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

@Silver-Ray
Copy link

same problem, have you solved it already?

@AndrewCapon
Copy link
Author

Nope, I just stopped using Cortex Debug and now use Eclipse which works.

@haneefdm
Copy link
Collaborator

This message is from VSCode and not from us. From Googling, it appears to mean that the extension was improperly installed or was not getting activated fully. If you installed it manually, make sure all the dependencies are also installed before installing this extension.

If you install via the VSCode GUI, it takes care of all the dependencies. See the full dependencies here

"extensionDependencies": [

Note that svd/peripheral viewer is another extension and not part of Cortex-Debug.

@AndrewCapon
Copy link
Author

I had installed using the VSCode GUI.

@haneefdm
Copy link
Collaborator

Did you get any (error) messages during installation or first launch? You can also go to the market place and install all the other extensions manually. I don't know what your setup is exactly. Docker for instance requires manually installing all dependencies when you build the docker image -- even if you install it using the GUI.

Uninstall this extension and any dependencies already installed and start over. Do not ignore any messages as you may not see those messages repeatedly.

@AndrewCapon
Copy link
Author

Not that I remember. I should also add Cortex Debug works with other SVD files, it is just the one I attached that doesn't work. As I said I'm using Eclipse now for this board.

Maybe I should close this issue, it wasn't looked at for 3 weeks anyway :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants