From: Benjamin Herrenschmidt Date: Thu, 4 Jun 2020 13:13:45 +0000 (+1000) Subject: flash-arty: Support hex values for address X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3592be733e9290fd2e1409bd6b52481116141e90;p=microwatt.git flash-arty: Support hex values for address Signed-off-by: Benjamin Herrenschmidt --- diff --git a/openocd/flash-arty b/openocd/flash-arty index 97193c7..14c9186 100755 --- a/openocd/flash-arty +++ b/openocd/flash-arty @@ -21,7 +21,7 @@ def flash(config, flash_proxy, address, data, set_qe=False): parser = argparse.ArgumentParser() parser.add_argument("file", help="file to write to flash") -parser.add_argument("-a", "--address", help="offset in flash", type=int, default=0) +parser.add_argument("-a", "--address", help="offset in flash", type=lambda x: int(x,0), default=0) parser.add_argument("-f", "--fpga", help="a35 or a100", default="a35") args = parser.parse_args()