Monday, March 31, 2014

Intel Hex with Python

Needed to create an intelHex file in Python.  Luckily there is a nice existing package at https://launchpad.net/intelhex/+download.  After downloading to get it to work with Python 3 just type the following:

python3 setup.py build install

Then just import

from intelhex import IntelHex

and then you can setup a blank intelHex file

ihData = IntelHex()

and then add as follows:

ihData[indexHex] = first




No comments:

Post a Comment