stm32_mem.py: Added a deprecation notice and information on alternatives that are available

This commit is contained in:
dragonmux 2022-08-09 04:44:22 +01:00 committed by Piotr Esden-Tempski
parent bc8a77a1f3
commit c228176d29
1 changed files with 7 additions and 1 deletions

View File

@ -156,9 +156,15 @@ def stm32_scan(args, test):
if __name__ == "__main__": if __name__ == "__main__":
print("-") print("-")
print("USB Device Firmware Upgrade - Host Utility -- version 1.2") print("USB Device Firmware Upgrade - Host Utility -- version 1.2")
print("Copyright (C) 2011 Black Sphere Technologies") print("Copyright (C) 2011 Black Sphere Technologies")
print("License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>") print("License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>")
print("-") print("-")
print("** WARNING: This utility has been deprecated in favour of bmputil and dfu-util **")
print(" Please see https://github.com/blackmagic-debug/bmputil")
print("-")
print("If this utility fails then for native please run `dfu-util -d 1d50:6018,:6017 -s 0x08002000:leave -D src/blackmagic.bin`")
print("otherwise see the readme for your platform for the dfu-util line to use.")
print("-")
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument("progfile", help="Binary file to program") parser.add_argument("progfile", help="Binary file to program")