Build a config zip from json and hex source files.
Usage: make_config_zip.py output.zip input1.json input2.hex ...
Supported input formats:
.json — included as-is
.hex — sparse hex format, converted to binary before packing
.bin — included as-is
Sparse hex format (.hex):
Lines of "hex_offset hex_value" (32-bit words, little-endian).
Lines starting with # are comments. Blank lines are ignored.
The total binary size is determined by the last offset + 4.
All unspecified words are zero.
Example:
# register reset values
00000000 00200001
00000004 0201e080
000fffb8 80000000