Fixed printed copyright notices in scripts.
hexprog.py now defaults to target 1.
This commit is contained in:
parent
9833245898
commit
4b105beb61
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# bootprog.py: STM32 SystemMemory Production Programmer -- version 1.1
|
# bootprog.py: STM32 SystemMemory Production Programmer -- version 1.1
|
||||||
# Copyright (C) 2009 Black Sphere Technologies
|
# Copyright (C) 2011 Black Sphere Technologies
|
||||||
# Written by Gareth McMullin <gareth@blacksphere.co.nz>
|
# Written by Gareth McMullin <gareth@blacksphere.co.nz>
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
@ -136,7 +136,8 @@ if __name__ == "__main__":
|
|||||||
if platform == "linux2":
|
if platform == "linux2":
|
||||||
print "\x1b\x5b\x48\x1b\x5b\x32\x4a" # clear terminal screen
|
print "\x1b\x5b\x48\x1b\x5b\x32\x4a" # clear terminal screen
|
||||||
print "STM32 SystemMemory Production Programmer -- version 1.1"
|
print "STM32 SystemMemory Production Programmer -- version 1.1"
|
||||||
print "Copyright (C) 2009 Black Sphere Technologies, All rights reserved."
|
print "Copyright (C) 2011 Black Sphere Technologies"
|
||||||
|
print "License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>"
|
||||||
print
|
print
|
||||||
|
|
||||||
dev = "COM1" if platform == "win32" else "/dev/ttyUSB0"
|
dev = "COM1" if platform == "win32" else "/dev/ttyUSB0"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
# hexprog.py: Python application to flash a target with an Intel hex file
|
# hexprog.py: Python application to flash a target with an Intel hex file
|
||||||
# Copyright (C) 2009 Black Sphere Technologies
|
# Copyright (C) 2011 Black Sphere Technologies
|
||||||
# Written by Gareth McMullin <gareth@blacksphere.co.nz>
|
# Written by Gareth McMullin <gareth@blacksphere.co.nz>
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
@ -67,13 +67,14 @@ if __name__ == "__main__":
|
|||||||
if platform == "linux2":
|
if platform == "linux2":
|
||||||
print ("\x1b\x5b\x48\x1b\x5b\x32\x4a") # clear terminal screen
|
print ("\x1b\x5b\x48\x1b\x5b\x32\x4a") # clear terminal screen
|
||||||
print("Black Magic Probe -- Target Production Programming Tool -- version 1.0")
|
print("Black Magic Probe -- Target Production Programming Tool -- version 1.0")
|
||||||
print("Copyright (C) 2009 Black Sphere Technologies, All rights reserved.")
|
print "Copyright (C) 2011 Black Sphere Technologies"
|
||||||
|
print "License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>"
|
||||||
print("")
|
print("")
|
||||||
|
|
||||||
dev = "COM1" if platform == "win32" else "/dev/ttyACM0"
|
dev = "COM1" if platform == "win32" else "/dev/ttyACM0"
|
||||||
baud = 115200
|
baud = 115200
|
||||||
scan = "jtag_scan"
|
scan = "jtag_scan"
|
||||||
targetno = 0
|
targetno = 1
|
||||||
unprot = False; prot = False
|
unprot = False; prot = False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
#
|
#
|
||||||
# stm32_mem.py: STM32 memory access using USB DFU class
|
# stm32_mem.py: STM32 memory access using USB DFU class
|
||||||
# Copyright (C) 2009 Black Sphere Technologies
|
# Copyright (C) 2011 Black Sphere Technologies
|
||||||
# Written by Gareth McMullin <gareth@blacksphere.co.nz>
|
# Written by Gareth McMullin <gareth@blacksphere.co.nz>
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
@ -61,8 +61,8 @@ def stm32_manifest(dev):
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print
|
print
|
||||||
print "USB Device Firmware Upgrade - Host Utility -- version 1.1"
|
print "USB Device Firmware Upgrade - Host Utility -- version 1.1"
|
||||||
print "Copyright (C) 2009 Black Sphere Technologies"
|
print "Copyright (C) 2011 Black Sphere Technologies"
|
||||||
print "All rights reserved"
|
print "License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>"
|
||||||
print
|
print
|
||||||
|
|
||||||
devs = dfu.finddevs()
|
devs = dfu.finddevs()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user