Azure-Samples / Azure-Samples/iot-middleware-freertos-samples
Cannot launch VS Code debugger with STM32
- Dominant language
- CMake
- Stars
- 88
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Description
Well, basically nothing works out of the box or by just simply following the [instructions](https://github.com/Azure-Samples/iot-middleware-freertos-samples/blob/main/demos/projects/ST/b-l475e-iot01a/VSCodeDebug.md):
The first problem is that the PowerShell script simply doesn't work:

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:

I tried to add -s command to openocd:

I can launch it manually from the power shell:

OpenOCD folder looks like this:

PATH variable points to C:\ST\OpenOCD-20210729-0.11.0
I have noticed a weird thing...

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?**
Contributor guide
Assessment
This issue has not been assessed yet.