diff --git a/scripts/west_commands/runners/stm32cubeprogrammer.py b/scripts/west_commands/runners/stm32cubeprogrammer.py index 12fa5cebedc..026e53274d5 100644 --- a/scripts/west_commands/runners/stm32cubeprogrammer.py +++ b/scripts/west_commands/runners/stm32cubeprogrammer.py @@ -89,7 +89,7 @@ class STM32CubeProgrammerBinaryRunner(ZephyrBinaryRunner): if x86_path.exists(): return x86_path - return Path(os.environ["PROGRAMFILES"]) / cli + return Path(os.environ["PROGRAMW6432"]) / cli if platform.system() == "Darwin": return (