-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge fails on two IntelHex16bit files... #51
Comments
the problem is not with merge function, but with getitem method (alows to use indexer "[ ]") When I have some time, I will try to propose some fix for that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am reading a PIC16 flash image from the target (oh instance IntelHex16bit), and merging it with a new image (nh instance IntelHex16bit) and get the following error:
nh.merge(oh[base:base+size], overlap='replace')
File "C:\Users\md84189\AppData\Local\Programs\Python\Python39\lib\site-packages\intelhex_init_.py", line 964, in getitem init.py", line 964, in getitem
addr1 = addr16 * 2
TypeError: unsupported operand type(s) for *: 'slice' and 'int'
If both instances are IntelHex or if nh instance is IntelHex and oh remains IntelHex16bit, the operation completes.
Note: Using Python 3.9.0, intelhex-2.3.0
The text was updated successfully, but these errors were encountered: