Comments (7)
I implemented a fix in c420fb2, created a tag 2.1.2 and uploaded it to PyPi.
The segments are inserted in ascending order, so iterating over the segments assuming ascending address should work. I split the address into the upper and lower 16 bits in as_ihex()
, and are using the upper 16 for extended linear address and the lower in the data record.
A test case was added called test_issue_4()
. It uses your example data and also another record testing that the segments are inserted by ascending address.
Thanks for the bug report =)
from bincopy.
Found another issue, if you read in an Intel hex file, then rewrite it, if there is a Type 0x05 record in it is lost as the program ignores those. Anyway to retain them?
Anthony Winner
Senior Software Engineer
Software Technology Group
4240 SW 109th Avenue
Beaverton, OR 97005
Office Phone: 503.672.9245
Email: [email protected]:[email protected]
Website: http://www.softwaretechnology.comhttp://www.softwaretechnology.com/
Electronic Transmission Confidentiality Notice
The information contained in this electronic transmission is private, confidential, the property of the sender, and intended for the use of the recipient(s), only. If you are not the addressee, any disclosure, copying, distribution or use of this information for any purpose is strictly prohibited. If you have received this information in error, please notify the sender, [email protected]:[email protected], immediately by e-mail and then delete this message. Thank you.
[FE.EN.1]
From: Erik Moqvist [mailto:[email protected]]
Sent: Wednesday, June 01, 2016 11:58 AM
To: eerimoq/bincopy
Cc: Anthony Winner; Author
Subject: Re: [eerimoq/bincopy] intel hex Extended Linear Address (#4)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/4#event-678863676, or mute the threadhttps://github.com/notifications/unsubscribe/ASdG333BkLqeoixAy0EAJmr3ijzqqFP-ks5qHdYkgaJpZM4Irnh2.
from bincopy.
Will also need that info on read to jump to that vector, so need some solution……
Anthony Winner
Senior Software Engineer
Software Technology Group
4240 SW 109th Avenue
Beaverton, OR 97005
Office Phone: 503.672.9245
Email: [email protected]:[email protected]
Website: http://www.softwaretechnology.comhttp://www.softwaretechnology.com/
Electronic Transmission Confidentiality Notice
The information contained in this electronic transmission is private, confidential, the property of the sender, and intended for the use of the recipient(s), only. If you are not the addressee, any disclosure, copying, distribution or use of this information for any purpose is strictly prohibited. If you have received this information in error, please notify the sender, [email protected]:[email protected], immediately by e-mail and then delete this message. Thank you.
[FE.EN.1]
From: Anthony Winner
Sent: Wednesday, June 22, 2016 8:06 AM
To: 'eerimoq/bincopy'
Subject: RE: [eerimoq/bincopy] intel hex Extended Linear Address (#4)
Found another issue, if you read in an Intel hex file, then rewrite it, if there is a Type 0x05 record in it is lost as the program ignores those. Anyway to retain them?
Anthony Winner
Senior Software Engineer
Software Technology Group
4240 SW 109th Avenue
Beaverton, OR 97005
Office Phone: 503.672.9245
Email: [email protected]:[email protected]
Website: http://www.softwaretechnology.comhttp://www.softwaretechnology.com/
Electronic Transmission Confidentiality Notice
The information contained in this electronic transmission is private, confidential, the property of the sender, and intended for the use of the recipient(s), only. If you are not the addressee, any disclosure, copying, distribution or use of this information for any purpose is strictly prohibited. If you have received this information in error, please notify the sender, [email protected]:[email protected], immediately by e-mail and then delete this message. Thank you.
[FE.EN.1]
From: Erik Moqvist [mailto:[email protected]]
Sent: Wednesday, June 01, 2016 11:58 AM
To: eerimoq/bincopy
Cc: Anthony Winner; Author
Subject: Re: [eerimoq/bincopy] intel hex Extended Linear Address (#4)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/4#event-678863676, or mute the threadhttps://github.com/notifications/unsubscribe/ASdG333BkLqeoixAy0EAJmr3ijzqqFP-ks5qHdYkgaJpZM4Irnh2.
from bincopy.
I'll have a look at it tonight. As you have already understood Indel Hex is not fully implemented yet. I'll do my best keeping up implementing the improvment requests. =)
Erik
from bincopy.
Found a simple fix, replace the ignore print with ‘ self.execution_start_address = (int(binascii.hexlify(data), 16))’
Rest of the logic is already there. Once I added that, my in / out files match perfectly. Will assume that the get / set functions for execution_start_address will work for my other script….
Thanks for the support….
Anthony Winner
Senior Software Engineer
Software Technology Group
4240 SW 109th Avenue
Beaverton, OR 97005
Office Phone: 503.672.9245
Email: [email protected]:[email protected]
Website: http://www.softwaretechnology.comhttp://www.softwaretechnology.com/
Electronic Transmission Confidentiality Notice
The information contained in this electronic transmission is private, confidential, the property of the sender, and intended for the use of the recipient(s), only. If you are not the addressee, any disclosure, copying, distribution or use of this information for any purpose is strictly prohibited. If you have received this information in error, please notify the sender, [email protected]:[email protected], immediately by e-mail and then delete this message. Thank you.
[FE.EN.1]
From: Erik Moqvist [mailto:[email protected]]
Sent: Wednesday, June 22, 2016 8:15 AM
To: eerimoq/bincopy
Cc: Anthony Winner; Author
Subject: Re: [eerimoq/bincopy] intel hex Extended Linear Address (#4)
I'll have a look at it tonight. As you have already understood Index Hex is not fully implemented yet. I'll do my best keeping up implementing the improvment requests. =)
Erik
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/4#issuecomment-227776700, or mute the threadhttps://github.com/notifications/unsubscribe/ASdG36qspao-eFeTKz9BBnh8-6Jb_q-Xks5qOVF8gaJpZM4Irnh2.
from bincopy.
Pushed the fix in version 2.1.4. Tried to upload the new version to pypi but failed. The login just hangs and nothing happens.
from bincopy.
At last, uploaded to pypi.
from bincopy.
Related Issues (20)
- BinFile maximum_address is actually pointing 1 byte "further"? HOT 2
- Enhancement don't parse no vailed lines of the end HOT 4
- module entry point is broken HOT 4
- save the object bincopy.BinFile HOT 1
- Invalid ELF file parsing HOT 4
- Extract data by address in S19 HOT 3
- fill empty space HOT 1
- Incorrect error check condition? HOT 3
- Enhancement: support full Verilog hex format HOT 2
- as_binary() raises a MemoryError HOT 5
- Change behaviour of `as_binary` when data is not present? HOT 2
- Invalid section from ELF file HOT 18
- 17.14.3: Missing some test files in sdist tarball HOT 4
- Do we have function like change s19 content? HOT 4
- Promote _Segments, _Segment, _Chunk to public API HOT 6
- Chunk.__len__ should return length of data HOT 1
- Feature request: Support Microchip HEX format HOT 3
- First chunk is misaligned if segment has non-aligned start address HOT 2
- Problem with loading ELF file produced by CodeWarrior toolchain HOT 1
- convert S19 to S19 file (add empty space and create new S19 file)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bincopy.