Keil Logo

Reordering Intel hex file lines by address

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Author
David Allan
Posted
9-Apr-2018 19:28 GMT
Toolset
C51
New! Reordering Intel hex file lines by address

I wrote software (for PC and my target micro) to download Intel hex format files.
It turns out it's much more efficient of the file is sorted by address. Is there
a linker command/directive that forces the lines of the output file to be sorted by
address ?

I'm using BL51 BANKED LINKER/LOCATER V6.2.

I think I've seen that the Extended Linker does that ... but would still be interested in
a linker directive if it turns out there is some incentive to use the regular linker.

Thank you

Author
Westonsupermare Pier
Posted
9-Apr-2018 21:23 GMT
Toolset
C51
New! RE: Reordering Intel hex file lines by address

The .HEX is designed to allow for sparse and out-of-order output, it significantly simplifies the linker's task and reduces the memory footprint. As such having an option to make your task easier complicates everyone elses task. Either have your tool perform the sorting step as part of loading the file, or use the a binary or object format.

Author
erik malund
Posted
10-Apr-2018 12:58 GMT
Toolset
C51
New! RE: Reordering Intel hex file lines by address

I wrote software (for PC and my target micro) to download Intel hex format files.
why are you reinventing the wheel?

Author
David Allan
Posted
10-Apr-2018 13:35 GMT
Toolset
C51
New! RE: Reordering Intel hex file lines by address

I define the product.

The definition is that 1) the PC download software MUST reside inside the custom terminal
software I have. 2) The firmware end MUST reside in a location other then what sample
software had it located.

I define the product.

Author
Hans Schneebauer
Posted
11-Apr-2018 12:08 GMT
Toolset
C51
New! RE: Reordering Intel hex file lines by address

Please see: http://www.keil.com/support/docs/2217.htm
This should answer your question.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.