Mercurial > lcfOS
comparison python/st-flash.py @ 244:58155c7c4a8e
Add hexutil
author | Windel Bouwman |
---|---|
date | Wed, 24 Jul 2013 19:47:13 +0200 |
parents | ce6d390043a7 |
children | f254b87258e6 |
comparison
equal
deleted
inserted
replaced
243:ef683881c64e | 244:58155c7c4a8e |
---|---|
20 readparser.add_argument('size', type=hex2int) | 20 readparser.add_argument('size', type=hex2int) |
21 | 21 |
22 writeparser = subparsers.add_parser('write', help='write flash contents') | 22 writeparser = subparsers.add_parser('write', help='write flash contents') |
23 writeparser.add_argument('filename', type=argparse.FileType('rb')) | 23 writeparser.add_argument('filename', type=argparse.FileType('rb')) |
24 writeparser.add_argument('address', type=hex2int) | 24 writeparser.add_argument('address', type=hex2int) |
25 | |
26 hexwriteparser = subparsers.add_parser('hexwrite', help='write hexfile to flash') | |
27 hexwriteparser.add_argument('filename', type=argparse.FileType('r')) | |
25 | 28 |
26 verifyparser = subparsers.add_parser('verify', help='verify flash contents') | 29 verifyparser = subparsers.add_parser('verify', help='verify flash contents') |
27 verifyparser.add_argument('filename', type=argparse.FileType('rb')) | 30 verifyparser.add_argument('filename', type=argparse.FileType('rb')) |
28 verifyparser.add_argument('address', type=hex2int) | 31 verifyparser.add_argument('address', type=hex2int) |
29 | 32 |