INH8XM HEX file structure


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891

    Default INH8XM HEX file structure

    Hello,

    I want to load my PIC's program memory with data, quite a lot of data.

    The idea is to flash the PIC with a HEX file that has been composed of:
    a.- the program;
    b.- the data.

    In fact, it is about to merge two HEX files - the first with the program, the second with the data.

    It is not clear to me how I have to read the INH8XM HEX file.

    Bits look to be inverted per pair; the adress is not clear to me, etc.

    Does anyone know about this? Are there some tools to make HEX files from, i.e. a TXT file?
    Roger

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by flotulopex View Post
    Hello,

    I want to load my PIC's program memory with data, quite a lot of data.

    The idea is to flash the PIC with a HEX file that has been composed of:
    a.- the program;
    b.- the data.

    In fact, it is about to merge two HEX files - the first with the program, the second with the data.

    It is not clear to me how I have to read the INH8XM HEX file.

    Bits look to be inverted per pair; the adress is not clear to me, etc.

    Does anyone know about this? Are there some tools to make HEX files from, i.e. a TXT file?
    I've got a HEX file merging program ( bin2hex.exe) that allowed you to set offsets, select the type of files to merge, etc.etc. If I recall correctly, I got it from one of those freeware/shareware sites awhile back. This might be what you want. Get me your email and I'll fire it off to ya.
    The way I used it is as follows:
    I created a program with PBP, compiled it, assembled it, and had a .hex file as the result. I looked at the .lst file, found the address for the end of that file and used that as one of the parameters for the bin2hex program.
    I also had another file which was a patch file that the original program would read from program memory and upload to another chip via I2C.
    So, once I had both hex files, I ran the bin2hex program (with the correct parameters set up) and the result was a merged file.
    The only problem I ran into while using it was numbering. The end of my hex file was something like $1500. But when I used the bin2hex program, I had to tell it to add in the 2nd file using a starting address of either $2A00 or $5400 (x2 or x4), I don't remember which one ended up working. One program though in terms of bytes, the other in double-words... Easily fixed...

Similar Threads

  1. Configuration bits in a HEX file gone missing?
    By grzes.r in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd February 2010, 02:10
  2. Warning: Some configuration words not in hex file
    By Byte_Butcher in forum General
    Replies: 2
    Last Post: - 14th December 2009, 07:25
  3. Compiled Hex File does not have Config Word
    By GoingMad in forum mel PIC BASIC
    Replies: 2
    Last Post: - 4th December 2006, 03:22
  4. Output hex file and Microchip direct
    By enigma in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th May 2006, 23:54
  5. No hex file...?
    By mypylon in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th November 2005, 15:02

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts