tools/flterm.py: fix kernel-adr support

This commit is contained in:
Florent Kermarrec 2015-07-07 14:58:49 +02:00
parent 0545d49294
commit d244eba583

View file

@ -290,12 +290,12 @@ def _get_args():
parser.add_argument("--port", default="2", help="serial port")
parser.add_argument("--speed", default=115200, help="serial baudrate")
parser.add_argument("--kernel", default=None, help="kernel image")
parser.add_argument("--kernel_adr", default=0x40000000, help="kernel address")
parser.add_argument("--kernel-adr", default=0x40000000, help="kernel address")
return parser.parse_args()
if __name__ == "__main__":
args = _get_args()
flterm = Flterm(args.kernel, args.kernel_adr)
flterm = Flterm(args.kernel, int(args.kernel_adr, 16))
flterm.open(args.port, args.speed)
flterm.start()
try: