Date : Sat, 24 SEP 1987 22:59:00-
From : RALPH%UHHEPG.BITNET@wiscvm.wisc.edu
Subject: Details of Intel Hex Format
Date: 24-SEP-1987 22:47:39.34
From: Ralph Becker-Szendy RALPH AT UHHEPG
To: BITNET::"info-cpm@simtel20.arpa",RALPH
Subj: Details of Intel Hex Format
Hi
i have a very stupid problem: for the first time in my life, i have to create
an Intel hex-file by hand (or rather by a program i wrote, and not by an
assembler or suchlike) to download it ionto an EPROM programmer.
Unfortunately, so far the EPROM programmer refused all my attempts, presumably
due to a format or checksum error in the hex file (it works fine otherwise);
it does beautifully work with other hex files.
Let my explain how one record in the hex-file i write looks like:
each byte is in hexadecimal, written as two (uppercase) ASCII characters.
- a colon ":"
- one byte # of data bytes, in my case "10"
- two bytes load adress, first high, then low byte
- one byte record type (always "00")
- 16 bytes of data
- one byte checksum.
- CR and LF
The checksum is calculated such that the sum of all bytes (including the
"10" and the two adress bytes) is a multiple of 256.
Is there anything wrong with this format ? If yes, what ??
Signed: confused
Ralph Becker-Szendy
University of Hawaii / High Energy Physics Group