What is the format of Intel Hex-32 file?
A HEX file is actually an ASCII file. You should follow this one, “Data-File Conversion to INTEL HEX-32 Format”. I found that it is easy to read and understand. The descriptions are spread around from page 16 of the XSV manual v1.1 and the Intel Hex format (simple one) and a better Intel HEX-32 manual.