Skip to content

Cannot launch VS Code debugger with STM32 #120

@ademyankov

Description

@ademyankov

Well, basically nothing works out of the box or by just simply following the instructions:

The first problem is that the PowerShell script simply doesn't work:

image

However, I was able to execute the script manually from the CMD and it successfully fetched the RTOS.

If I skip it I hit the problem with openocd:

image

I tried to add -s command to openocd:
image

I can launch it manually from the power shell:

image

OpenOCD folder looks like this:
image

PATH variable points to C:\ST\OpenOCD-20210729-0.11.0

I have noticed a weird thing...

image

why does it add '-s' and the root folder of the IoT project for the openocd cfg search path?

I couldn't find any JSON settings explicitly doing this.

After I copied folders from the openocd into the root of the project at least the debugger starts.

Since you guys went through this hassle can you see or possibly identify where the problem might be with all those things?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions