-
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
Can you add hex file support for TI C28x DSP? #34
Comments
I make a PR #33 , add feature of any bit_length word mode (class IntelHexWord). The hex file using with word address not byte address. It not not merged for now. You can check my fork . from intelhex import IntelHexWord
h16 = IntelHexWord('test_16bit.hex', word_length=16)
h16.write_hex_file('test_16bit.out.hex', byte_count=32)
print('{:x}'.format(h16[0x3F2132])) |
@xjtuecho Maybe you can use the bincopy package instead? import bincopy
HEX = '''\
:02000004003FBB
:20213200835E3F6C09083F71FA0B3F7453F83F7814BE3F7B3AAC3F7DC46D3F7EB10F3F7FEC
:2021420000003F8000004300F98341A20FDB3D49007F00000000BF00AAABBE2AAAAB3E2A74
:0C215200AAAB3D2A88893C088889BC089B
:00000001FF
'''
bf = bincopy.BinFile(word_size_bits=16)
bf.add_ihex(HEX)
print("0x3F2132 = 0x{:04X}".format(bf[0x3F2132]))
print("0x3F2142 = 0x{:04X}".format(bf[0x3F2142]))
print("0x3F2152 = 0x{:04X}".format(bf[0x3F2152])) The output is:
|
Sorry for not working on your issue. I'm looking for a new maintainer for Python IntelHex project. I hope someone will help. |
I need file format description. Do you have any document? |
I believe this is docs for hex2000 with --intel option |
Yes.
|
This is a snippet of a hex file.
and the actual memory contents after flashing the hex file.
|
The ram and rom width of TI C28x DSP such as TMS320F28335 is 16 bits, and data word is big endian. I use command below to generate hex file from ELF file.
Here is a segment of hex file of C28x. Word on address 0x3F2132 is 0x835E and word on address 0x3F2142 is 0x0000 and word on address 0x3F2152 is 0xAAAB.
When I use IntexHex16bit to parse the hex file, it raised AddressOverlapError. Can you add support for C28x? Thank you.
The text was updated successfully, but these errors were encountered: