Skip to content

Commit

Permalink
tools/psoc6/mpy-psoc6.py: Added progress messages to firmware-deploy.
Browse files Browse the repository at this point in the history
Signed-off-by: enriquezgarc <[email protected]>
  • Loading branch information
jaenrig-ifx committed Jan 16, 2024
1 parent b7015b9 commit f8720ab
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tools/psoc6/mpy-psoc6.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,14 @@ def print_exit_banner():
wait_user_termination()


def firmware_deploy(board, hex_file):
openocd_download_install()
openocd_board_conf_download(board)
print(f"Deploying hex file {hex_file} ...")
openocd_program(board, hex_file)
print(colour_str_success(f"Firmware {hex_file} deployed successfully"))


def clean_tool_downloads():
fwloader_remove()
openocd_remove()
Expand All @@ -587,9 +595,7 @@ def parser_device_setup(args):
device_setup(args.board, args.version, args.skip_fw_update, args.q)

def parser_firmware_deploy(args):
openocd_download_install()
openocd_board_conf_download(args.board)
openocd_program(args.board, args.hexfile)
firmware_deploy(args.board, args.hexfile)

def parser_device_erase(args):
device_erase(args.board, args.q)
Expand Down

0 comments on commit f8720ab

Please sign in to comment.