On Jun 5, 0:09, Tony Duell wrote:
> S-records. There is a nice source code file that
exists for
reading/writing
> Intel HEX files but I haven't been able to
find a similar one for
S-records.
Earlier this evening I was thinking about a project
that will involve (in
part) translating binary to/from IntelHex (or Motorola S-record would do,
actually). Can you give me a URL for that source code you mentioned (or
any other source code for a simular program).
Ages ago, I wrote a "loader" that will convert Intel HEX records to binary,
on a Unix machine (or about anything else with a C compiler). It's quite
powerful, being designed to handle multiple files, sparse files, patch
files, etc, for EPROM programmers.
I planned to make a whole set of HEX -> binary, HEX -> S-record, S-record
-> binary, etc, but I never quite finished. Most of this has been
available on my web site for a while, and I've just added a couple of files
for anyone who wants them.
http://www.dunnington.u-net.com/public/IntelHEX/
IntelHEX.txt is a simple explanation of comon HEX records (as
used by CP/M and some programmers, for example)
S-records.txt is a similar explanation of S-records (not written by me)
ihex.tar is the source/manpage for a binary-to-HEX converter,
written by my friend James Carter
mload.tar is the source/manpage for my HEX-to-binary and
S-record-to-hex converters, along with some notes.
--
Pete Peter Turnbull
Network Manager
University of York