You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 getiteminit.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:
the problem is not with merge function, but with getitem method (alows to use indexer "[ ]")
probably noone used it, therefore never tested properly
current implementation doesn't support slicing, and this is what the error really is saying
When I have some time, I will try to propose some fix for that.
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: