diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-10-26 18:33:00 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-10-26 18:33:00 -0400 |
commit | 538d6ac3a278ae7e3f7ff55ea67c17012d063733 (patch) | |
tree | f169fda10eb1310dfa9d7063c812826bd5ede4e8 /scripts/flash_usb.py | |
parent | c694da37532e495e58d1e18a6ad55ad71d56f085 (diff) | |
download | kutter-538d6ac3a278ae7e3f7ff55ea67c17012d063733.tar.gz kutter-538d6ac3a278ae7e3f7ff55ea67c17012d063733.tar.xz kutter-538d6ac3a278ae7e3f7ff55ea67c17012d063733.zip |
flash_usb: Use "-s" option to specify flash offset on atsamd
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts/flash_usb.py')
-rwxr-xr-x | scripts/flash_usb.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/flash_usb.py b/scripts/flash_usb.py index 9bad5040..13fa51b3 100755 --- a/scripts/flash_usb.py +++ b/scripts/flash_usb.py @@ -135,7 +135,7 @@ def flash_atsam4(options, binfile): sys.exit(-1) def flash_atsamd(options, binfile): - extra_flags = ["--offset=" + options.offset, "-b", "-R"] + extra_flags = ["--offset=0x%x" % (options.start,), "-b", "-R"] try: flash_bossac(options.device, binfile, extra_flags) except error as e: @@ -228,8 +228,6 @@ def main(): help="micro-controller type") opts.add_option("-d", "--device", type="string", dest="device", help="serial port device") - opts.add_option("-o", "--offset", type="string", dest="offset", - help="flash offset") opts.add_option("-s", "--start", type="int", dest="start", help="start address in flash") opts.add_option("--no-sudo", action="store_false", dest="sudo", |