scripts: west flash with stm32CubeProgrammer error line

Correct the error "F541 f-string is missing placeholders"
when ruuning Flake

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2024-02-05 16:43:01 +01:00 committed by Carles Cufí
commit 76c0e2cf51

View file

@ -200,7 +200,7 @@ class STM32CubeProgrammerBinaryRunner(ZephyrBinaryRunner):
# flash image and run application
dl_file = self.cfg.elf_file if self._use_elf else self.cfg.hex_file
if dl_file is None:
raise RuntimeError(f'cannot flash; no download file was specified')
raise RuntimeError('cannot flash; no download file was specified')
elif not os.path.isfile(dl_file):
raise RuntimeError(f'download file {dl_file} does not exist')
self.check_call(cmd + ["--download", dl_file, "--start"])