Skip to content

Commit

Permalink
dist/tools/bmp: add logging
Browse files Browse the repository at this point in the history
Print action to console for reset and flash action, similar to the
erase action.
  • Loading branch information
basilfx committed Dec 23, 2024
1 parent c57fe9b commit e55da6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/tools/bmp/bmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ def main():

# reset mode: reset device using reset pin
if args.action == 'reset':
print('resetting...')
assert gdb_write_and_wait_for_result(gdbmi, 'monitor hard_srst', 'resetting target')
sys.exit(0)
# erase mode
Expand All @@ -291,6 +292,7 @@ def main():
sys.exit(0)
# flashloader mode: flash, check and restart
elif args.action == 'flash':
print('flashing...')
download_to_flash(gdbmi)
check_flash(gdbmi)

Expand Down

0 comments on commit e55da6a

Please sign in to comment.