Marus / cortex-debug

Visual Studio Code extension for enhancing debug capabilities for Cortex-M Microcontrollers
MIT License
984 stars 238 forks source link

No SVD file loaded issue #53

Closed pga23 closed 6 years ago

pga23 commented 6 years ago

Debugger works fine except loading SVD file.

My config is:

{
    "version": "0.2.0",
    "configurations": [
        {
            "cwd": "${workspaceRoot}",
            "executable": "./build/firmware_flash.elf",
            "name": "Debug",
            "request": "launch",
            "type": "cortex-debug",
            "servertype": "openocd",
            "configFiles": [
                "/usr/share/openocd/scripts/board/atmel_saml21_xplained_pro.cfg"
            ],
            "svdFile": "${workspaceRoot}/doc/saml21b/svd/ATSAML21J18B.svd"
        }
    ]
}

The official SVD file comes form http://packs.download.atmel.com/ website.

I use Ubuntu 14.04, Visual Studio Code 1.22.2 and OpenOCD 0.10.0

Marus commented 6 years ago

I'll take a look into it and see if I can determine why it may not be parsing the SVD properly.

ivankravets commented 6 years ago

See https://github.com/Marus/cortex-debug/pull/50

Marus commented 6 years ago

I think this should be fixed in the latest release. If the problem still persists please re-open the issue.

gigaj0ule commented 5 years ago

I'm not so sure the problem is fixed, the same "not-loaded" bug seems to appear with this file: https://raw.githubusercontent.com/posborne/cmsis-svd/master/data/STMicro/STM32F405.svd