Share

Hex2bin

Code

Programming Languages: C

License: GNU General Public License (GPL)

Repositories

browse code, statistics, last commit on 2003-02-28 cvs -d:pserver:anonymous@hex2bin.cvs.sourceforge.net:/cvsroot/hex2bin login

cvs -z3 -d:pserver:anonymous@hex2bin.cvs.sourceforge.net:/cvsroot/hex2bin co -P modulename

Show:

What's happening?

  • Comment: Incorrect file conversion.

    The problem was due to overlapping records. Trying to correct this may lead to a major code rewrite. I'm putting this as closed for now. Assuming that hex files are mostly generated, this shouldn't be a major problem.

    2008-01-16 10:34:10 UTC by jpelletier

  • New release: 1.0.5

    This release fixes option parsing. Some options were ignored when many options were specified. A version compiled for windows is included (hex2bin.exe mot2bin.exe)

    2007-10-06 08:22:48 UTC by jpelletier

  • Note: overlapping records

    hex2bin/mot2bin assume that records don't overlap. If records do overlap, it will be translated without any warnings. Usually, compilers shouldn't generate overlapping records.

    2007-10-04 04:18:05 UTC by jpelletier

  • Comment: Incorrect file conversion.

    :10044800E47889F6E47B7F7A017984A5587889E68F :100458007B7F7A017983A558A5220000000000005F :10046000000000000000000000000000000000008C :10047000000000000000000000000000000000007C The line :10045800... is too long and overlaps the following line. It decodes addresses as 0458-0467 and the following line as 0460-046F, so bytes at 0460 (A5 22) disappear. So the problem is not hex2bin itself...

    2007-10-02 04:38:48 UTC by jpelletier

  • Comment: Incorrect file conversion.

    I took note of it and will check this out in the following weeks.

    2007-10-02 04:18:09 UTC by jpelletier

  • Incorrect file conversion.

    Hi, I was using hex2bin to convert hex files into code that is subsequently executed. I find in this file that it converts the whole file, but amits the final 2 bytes. I downloaded the latest 1.0.4 version to check, used in win XP. Many thanks for your work, Robbie.

    2007-08-17 14:32:47 UTC by nobody

  • Binary file over 64K

    If hex2bin/mot2bin fail while generating binary files over 64K, try changing this define to an appropriate size, say 4M This is the allocated memory for the binary file. (in hex2bin.c, mot2bin.c) /* size in bytes */ #define MEMORY_SIZE 4096*1024.

    2005-08-25 04:11:18 UTC by jpelletier

  • Comment: Binary file over 64K - below 1M

    Logged In: YES user_id=615018 A quick fix is to change the size of the memory that will be allocated. /* size in bytes */ #define MEMORY_SIZE 4096*1024.

    2005-08-25 04:04:22 UTC by jpelletier

  • Binary file over 64K - below 1M

    When converting an hex file which generates a 1M binary file, not all the file is converted.

    2005-08-25 04:00:11 UTC by jpelletier

  • New release

    Added the possibility to put a checksum in a binary file, corrected many bugs and integrated all patches. Includes binaries for linux and windows (compiled on windows 98)

    2005-01-29 04:55:11 UTC by jpelletier

Our Numbers