"west flash" is reporting error #82005
Labels
area: West
West utility
bug
The issue is a bug, or the PR is fixing a bug
priority: high
High impact/importance bug
Describe the bug
"west flash" is broken in the Zephyr latest main branch.
To Reproduce
Expected behavior
No error reports, the binary can be programmed to the target board.
Impact
Unable to continue the development without "west flash" working.
Logs and console output
Traceback (most recent call last):
File "C:\Python310\Lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Python310\Lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Python310\Scripts\west.exe_main.py", line 7, in
File "C:\Python310\Lib\site-packages\west\app\main.py", line 866, in main
app.run(argv or sys.argv[1:])
File "C:\Python310\Lib\site-packages\west\app\main.py", line 111, in run
self.run_command(argv)
File "C:\Python310\Lib\site-packages\west\app\main.py", line 385, in run_command
self.run_extension(args.command, argv)
File "C:\Python310\Lib\site-packages\west\app\main.py", line 467, in run_extension
self.cmd.run(args, unknown, self.topdir, manifest=self.manifest,
File "C:\Python310\Lib\site-packages\west\commands.py", line 194, in run
self.do_run(args, unknown)
File "C:\ambiqcodes\radio_sw\zephyr\scripts\west_commands\flash.py", line 33, in do_run
do_run_common(self, my_args, runner_args, domain_file=domains_file)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\run_common.py", line 314, in do_run_common
prev_runner = do_run_common_image(command, user_args, user_runner_args, used_cmds,
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\run_common.py", line 489, in do_run_common_image
runner.run(command_name)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\runners\core.py", line 720, in run
self.do_run(command, **kwargs)
do_run_common(self, my_args, runner_args, domain_file=domains_file)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\run_common.py", line 314, in do_run_common
prev_runner = do_run_common_image(command, user_args, user_runner_args, used_cmds,
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\run_common.py", line 489, in do_run_common_image
runner.run(command_name)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\runners\core.py", line 720, in run
self.do_run(command, **kwargs)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\run_common.py", line 314, in do_run_common
prev_runner = do_run_common_image(command, user_args, user_runner_args, used_cmds,
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\run_common.py", line 489, in do_run_common_image
runner.run(command_name)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\runners\core.py", line 720, in run
self.do_run(command, **kwargs)
prev_runner = do_run_common_image(command, user_args, user_runner_args, used_cmds,
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\run_common.py", line 489, in do_run_common_image
runner.run(command_name)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\runners\core.py", line 720, in run
self.do_run(command, **kwargs)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\run_common.py", line 489, in do_run_common_image
runner.run(command_name)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\runners\core.py", line 720, in run
self.do_run(command, **kwargs)
runner.run(command_name)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\runners\core.py", line 720, in run
self.do_run(command, **kwargs)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\runners\core.py", line 720, in run
self.do_run(command, **kwargs)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\runners\jlink.py", line 281, in do_run
self.flash(**kwargs)
self.do_run(command, **kwargs)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\runners\jlink.py", line 281, in do_run
self.flash(**kwargs)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\runners\jlink.py", line 281, in do_run
self.flash(**kwargs)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\runners\jlink.py", line 451, in flash
self.run_flash_cmd(fname, flash_file, **kwargs)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\runners\jlink.py", line 438, in run_flash_cmd
self.run_flash_cmd(fname, flash_file, **kwargs)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\runners\jlink.py", line 438, in run_flash_cmd
self.check_call(cmd, **kwargs)
File "C:\ambiqcodes\radio_sw\zephyr\scripts/west_commands\runners\jlink.py", line 438, in run_flash_cmd
self.check_call(cmd, **kwargs)
self.check_call(cmd, **kwargs)
UnboundLocalError: local variable 'cmd' referenced before assignment
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: