Add genbackupisr
This commit is contained in:
parent
b774d61713
commit
ed638a5f5a
15
examples/osd/ota-update/genbackupisr.py
Normal file
15
examples/osd/ota-update/genbackupisr.py
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
""" Generate backup ISR table from given .hex file
|
||||||
|
Output is written to out.hex
|
||||||
|
"""
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import intelhex
|
||||||
|
|
||||||
|
ihex = intelhex.IntelHex (sys.argv [1])
|
||||||
|
bin = ihex.tobinstr () [:0x200]
|
||||||
|
|
||||||
|
hex2 = intelhex.IntelHex ()
|
||||||
|
hex2.puts (0x1ed00, bin)
|
||||||
|
hex2.tofile ("out.hex", format="hex")
|
Loading…
Reference in a new issue