-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Type: Bug Report
Describe the bug
- OS and Version: Win 11
- VS Code Version: 1.109.2
- Extension Version: 1.64.2
Different pyOCD executables are being used when CMSIS Solution extension is configured for Zephyr applications.
pyOCD is typically used for:
- Debugging by launching the debugger via launch,json: pyOCD executable shipped with the Arm CMSIS Debugger extension is used by default
- Programming through tasks via the tasks.json: pyOCD from the system PATH is used by default
- CLI from the terminal: pyOCD from the system PATH is used
Unfortunately, Zephyr includes its own version of pyOCD executable in the same folder as the west executable which is typically registered in the system PATH.
Work with Zephyr applications documentation states that the Environment Variable PATH in the CMSIS Solution settings should be set and point to the Zephyr folder with binaries. This variable is prepended to the system PATH. Once the Environment Variable PATH is configured to point to Zephyr binaries, pyOCD from Zephyr will be used in tasks and terminal, regardless of if the project itself is for Zephyr or not.
Expected behavior
Expected is that the pyOCD version shipped with the Arm CMSIS Debugger extension is used consistently. This implies that pyOCD executable from the Arm CMSIS Debugger extension is first in the PATH in order for tasks and terminal to use that pyOCD version (in addition to the debug launch).
Metadata
Metadata
Assignees
Labels
Type
Projects
Status