ARM Technical Support Knowledge Articles

GENERATING HEX FILES FOR PHILIPS MX DEVICES

Applies to: OHX51 Object-HEX Converter

Answer


Information in this article applies to:


QUESTION

I need to generate an Intel HEX file for the Philips 80C51MX device series. I noticed that the current version of OHX51 generates a hex file which starts the code in 0x000000. Previous versions generated the code starting at 0x800000.

Why was this changed and how can I generate a file that starts with the physical offset at 0x800000, as it was in the previous release?

ANSWER

Typically, a Philips 80C51MX device has a CODE ROM that starts with physical address 0 but is mapped to the logical CODE address that starts at address 0x800000. Since many customers were confused by the way HEX files were generated, the new version of OHX51 defaults to OFFSET(-0x800000) for the Philips 80C51MX devices.

To generate HEX files with the old address offset of 0x800000, you may invoke OHX51 from the command prompt using the OFFSET (0) directive.

Another alternative is to enter the following OHX51 command line into the Option for Target - Output dialog under Run User Program:

C:KEILC51BINOHX51.EXE "#L" H386 OFFSET (0)

MORE INFORMATION

SEE ALSO

Article last edited on: 2007-02-11 22:42:27

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential