diff --git a/pyocd/tools/flash_tool.py b/pyocd/tools/flash_tool.py index 9d15dcc04..d171b61c7 100755 --- a/pyocd/tools/flash_tool.py +++ b/pyocd/tools/flash_tool.py @@ -139,7 +139,7 @@ def main(): ConnectHelper.list_connected_probes() else: session = ConnectHelper.session_with_chosen_probe( - config_file=self.args.config, + config_file=args.config, board_id=args.board_id, target_override=args.target_override, frequency=args.frequency,