From 3592be733e9290fd2e1409bd6b52481116141e90 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Thu, 4 Jun 2020 23:13:45 +1000 Subject: [PATCH] flash-arty: Support hex values for address Signed-off-by: Benjamin Herrenschmidt --- openocd/flash-arty | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.30.2