mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-07 06:57:38 -06:00
flash_usb: Use "-s" option to specify flash offset on atsamd
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
c694da3753
commit
538d6ac3a2
2 changed files with 2 additions and 4 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue