|ARM Technical Support Knowledge Articles|
Applies to: OHX51 Object-HEX Converter
Information in this article applies to:
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?
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)
Article last edited on: 2007-02-11 22:42:27
Did you find this article helpful? Yes No
How can we improve this article?