954da749eb
Now methods that need interrupts turned off are wrapped. Make genbackupisr.py executable. New resources for bootloader-related information.
16 lines
301 B
Python
Executable file
16 lines
301 B
Python
Executable file
#!/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")
|