IARSystems / iar-vsc-debug

Visual Studio Code extension for the IAR C-SPY debugger
20 stars 1 forks source link

Cannot find J-Link/J-Trace drivers #11

Closed Entropy98 closed 1 year ago

Entropy98 commented 1 year ago

My launch.json looks like this:

{
"version": "0.2.0",
    "configurations": [
        {
            "type": "cspy",
            "request": "launch",
            "name": "<Project Name>.Release",
            "target": "arm",
            "program": "${workspaceFolder}\\<Project Name>\\Release\\Exe\\<Project Name>.out",
            "driver": "J-Link/J-Trace",
            "stopOnEntry": true,
            "workbenchPath": "${command:iar-config.toolchain}",
            "projectPath": "${workspaceFolder}\\<Project Name>\\<Project Name>.ewp",
            "projectConfiguration": "Release",
            "driverOptions": [
                "--endian=little",
                "--cpu=Cortex-M4",
                "--fpu=VFPv4_SP",
                "-p",
                "C:\\Program Files (x86)\\IAR Systems\\Embedded Workbench 8.4\\arm\\CONFIG\\debugger\\Maxim\\MAX32665.ddf",
                "--semihosting=none",
                "--device=MAX32665",
                "--drv_communication=USB0",
                "--drv_interface_speed=auto",
                "--jlink_initial_speed=1000",
                "--jlink_reset_strategy=100,2",
                "--drv_interface=SWD",
                "--drv_catch_exceptions=0xff1",
                "--drv_swo_clock_setup=96000000,0,2000000"
            ],
            "download": {
                "flashLoader": "C:\\Program Files (x86)\\IAR Systems\\Embedded Workbench 8.4\\arm\\config\\flashloader\\Maxim\\FlashMAX32665.board",
                "deviceMacros": []
            }
        }
    ]
}

When I run it I get: image

And I have confirmed that I have JLink drivers including JLink.sys with execute permissions at C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\drivers\Jlink\x86

However, I cannot find how to point the driver directory at this folder. Any advice or work to make this variable configurable?

HampusAdolfsson commented 1 year ago

A related problem was mentioned in #9, so we are aware of the issue. The fix will be included in the next extension release, which should be sometime this week.