Skip to content

west: Look for STM32_Programmer_CLI in PATH on macOS #93059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

glward
Copy link

@glward glward commented Jul 12, 2025

On Windows and Linux, the stm32cubeprogrammer runner will use STM32_Programmer_CLI from PATH if it is available, but this was not implemented on macOS. Add PATH lookup for macOS as well, using the same approach as Windows and Linux.

Fixes #93056

As I mentioned in the issue, I don't really want to just change the path as it may well break (many?) existing installs. This just ensures the PATH-based override works as it does on Windows and Linux.

On Windows and Linux, the stm32cubeprogrammer runner will use
STM32_Programmer_CLI from PATH if it is available, but this was not
implemented on macOS. Add PATH lookup for macOS as well, using the same
approach as Windows and Linux.

Fixes zephyrproject-rtos#93056

Signed-off-by: Garrett L. Ward <glward@glward.net>
Copy link

Hello @glward, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

@github-actions github-actions bot added the area: West West utility label Jul 12, 2025
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: West West utility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

west on macOS: stm32cubeprogrammer has incorrect default path and does not respect PATH
2 participants