Menu

Tree [c1057d] default tip /
 History

Read Only access


File Date Author Commit
 .idea 2016-04-09 Martin Scharrer Martin Scharrer [a3e9d9] multipartbuffer: Changed/fixes for add() and lo...
 docs 2016-04-06 Martin Scharrer Martin Scharrer [cd9d43] Minor config fixes.
 hexformat 2016-04-17 Martin Scharrer Martin Scharrer [3aafa6] multipartbuffer: Added loadfh() and loadfile()....
 tests 2016-04-17 Martin Scharrer Martin Scharrer [2a84b9] multipartbuffer: Added tests for loadfh() and l...
 .coveragerc 2016-04-04 Martin Scharrer Martin Scharrer [8dc821] Added tests for `base` module.
 .hgignore 2016-04-17 Martin Scharrer Martin Scharrer [03e72f] Updated ignore list
 .hgtags 2016-04-17 Martin Scharrer Martin Scharrer [c1057d] Added tag v0.2 for changeset 2a84b9a73ffd
 README.rst 2016-04-02 Martin Scharrer Martin Scharrer [6f5648] Minor Doc update
 setup.py 2016-04-06 Martin Scharrer Martin Scharrer [cd9d43] Minor config fixes.
 tox.ini 2016-04-17 Martin Scharrer Martin Scharrer [3b2926] Updated tox settings.

Read Me

About

The hexformat Python package allows the processing of several HEX data formats. Supported formats are the Intel-Hex format, the Motorola S-Record format as well as the simple hex dump format. The first two are often used for programming microcontrollers while the last is often used to display binary data in a user readable way.

Files in the mentioned format can be created, modified (e.g. set, delete and fill data) and read from or written to files. A base class MultiPartBuffer is provided which implements the handling of multiple data parts where every part is identified by its corresponding start address. This base class allows for the basic operations like reading and writing binary files as well as modifing the binary data. The specific classes IntelHex, SRecord and HexDump are derivated from it which implement the parsing and generating of the corresponding HEX formats as well as implementing file format specific features.

Motivation

This package was mainly created to replace the srecord command line tool and its complicated interface with a clean python interface for use with handling microcontroller HEX files. The existing Python library intelhex was used for a while, but then the need for the S-Record format appeared. Also intelhex.IntelHex did not provide a suitable interface for the most often used operations.

MongoDB Logo MongoDB