diff python/st-flash.py @ 244:58155c7c4a8e

Add hexutil
author Windel Bouwman
date Wed, 24 Jul 2013 19:47:13 +0200
parents ce6d390043a7
children f254b87258e6
line wrap: on
line diff
--- a/python/st-flash.py	Tue Jul 23 16:50:02 2013 +0200
+++ b/python/st-flash.py	Wed Jul 24 19:47:13 2013 +0200
@@ -23,6 +23,9 @@
 writeparser.add_argument('filename', type=argparse.FileType('rb'))
 writeparser.add_argument('address', type=hex2int)
 
+hexwriteparser = subparsers.add_parser('hexwrite', help='write hexfile to flash')
+hexwriteparser.add_argument('filename', type=argparse.FileType('r'))
+
 verifyparser = subparsers.add_parser('verify', help='verify flash contents')
 verifyparser.add_argument('filename', type=argparse.FileType('rb'))
 verifyparser.add_argument('address', type=hex2int)