Git Product home page Git Product logo

hexfile_merger's Introduction

hexfile_merger

Import files of various formats, apply simple manipulations, and merge them to a single output file.

usage: hexfile_merger with following options/commands:

-h/-help                            print this help
-v/-verbose [level]                 set verbosity level 0..3 (default: 2)
-import [infile [addr]]             import from file to image. For binary file (*.bin) provide start address (in hex)
-export [outfile]                   export image to file
-print                              print image to console
-fill [addrStart addrStop val]      fill specified range with fixed value (addr & val in hex)
-clip [addrStart addrStop]          clip image to specified range (addr in hex)
-cut  [addrStart addrStop]          cut specified data range from image (addr in hex)
-copy [fromStart fromStop toStart]  copy data within image (addr in hex). Keep old data
-move [fromStart fromStop toStart]  move data within image (addr in hex). Unset old data

Supported import formats:

Supported export formats:

  • print to stdout (-print)
  • Motorola S19 (*.s19)
  • ASCII table (*.txt) with 'hexAddr hexValue'
  • Binary (*.bin) without starting address

Files are imported and exported in the specified order, i.e. later imports may overwrite previous imports. Also outputs only contain the previous imports, i.e. intermediate exports only contain the merged content up to that point in time.

Notes:

  • this tool is written in ANSI-C, it should be compatible with any platform supporting e.g. GCC
  • file and image buffers sizes are 10MByte. For larger buffers increase LENFILEBUF and LENIMAGEBUF in hexfile.h

If you find any bugs or for feature requests, please drop me a note.

Have fun! Georg

====================================

Revision History

1.4 (2019-03-21):

  • added '-fill' command
  • changed '-clear' to '-cut' for clarity (data is removed, not cleared)
  • added support for 64-bit address range

1.3 (2018-12-24):

  • changed commandline keywords (became too complex)
  • added more verbose information
  • added binary import and export format
  • added printing to console
  • added image manipulation (clip, clear, copy, move)
  • fixed S19 export bugs for >16bit addresses and small images
  • fixed IHX import bug for record type 5
  • harmonized files with https://github.com/gicking/stm8gal

1.2 (2018-12-08):

  • remove (non-functional) Intel hexfile export
  • fixed s19 export bug for 16bit addresses
  • added optional hex support in table import
  • added comment option '#' in table import

1.1 (2017-03-31):

  • fixed wrong handling of extended linear address records

1.0 (2015-06-18):

  • initial release by Georg Icking-Konert under the Apache License 2.0

hexfile_merger's People

Contributors

gicking avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.