Rather than rewrite an existing record, why not leave a 'hole' in the
code and then append the changeable info as a separate (or concatenated)
file?
Most programmers don't care about the address order, so you could
program the common code first, then upload the unique info separately.
Or combine the files after they are created. e.g.
DOSPROMPT>copy common.hex+serialxx.hex pgmr.hex
It's probably easier to write a short script (or batch file) to generate serialized
hex files, than to write a full blown hex file editor. The MSDOS batch
processor is quite useful for this.
Robert
Ed Sutton wrote:
{Quote hidden}>
> Olin Lathrop wrote:
> > I don't know about editing, but MPASM can generate an Intel HEX file
> > containing numbers in various formats, strings, etc.
>
> Good idea.
>
> > The few times I've had to modify an Intel HEX file, I wrote a program to do
> > it. I've got generic Intel HEX file I/O routines, so the app part of the
> > program is easy. This has usually been to automatically add things like
> > serial numbers and date/time stamps. Why to you want to edit a HEX file?
>
> We customize our device for different applications by manually editing
> the EEPROM.hex file to change control constants and a product ID string.
> I want to automate this as well.
>
> As you did, I eventually expect to end up writing my own utility or
> editor that reads and modifies the appropriate data in the Intel hex file.
--
http://www.piclist.com hint: To leave the PICList
TakeThisOuTpiclist-unsubscribe-requestEraseME
spam_OUTmitvma.mit.edu