]>
git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/workspace_tools/dev/intel_hex_utils.py
1 from intelhex
import IntelHex
2 from cStringIO
import StringIO
6 start
, last_address
= None, None
7 for a
in h
.addresses():
8 if last_address
is None:
9 start
, last_address
= a
, a
12 if a
> last_address
+ 1:
13 yield (start
, last_address
)
19 yield (start
, last_address
)
22 def print_sections(h
):
24 print "[0x%08X - 0x%08X]" % s