This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error generating hex file


I always get the following error while tring to run oh51 tool.

C:\Keil\C51\BIN>oh51 main.obj

OBJECT TO HEX FILE CONVERTER OH51 V2.6
COPYRIGHT KEIL ELEKTRONIK GmbH 1991 - 2001

GENERATING INTEL HEX FILE: main.hex

*** ERROR: UNKNOWN RECORD TYPE 0FH
*** OH51 ABORTED.

Parents
  • Is MAIN.OBJ generated from the C51 compiler? IF so, you need to LINK the object file to fix-up absolute addresses and to include the startup code and to include any library routines that you have used.

    The output from the link (which is an absolute object module) may then be used to generate a HEX file.

    Jon

Reply
  • Is MAIN.OBJ generated from the C51 compiler? IF so, you need to LINK the object file to fix-up absolute addresses and to include the startup code and to include any library routines that you have used.

    The output from the link (which is an absolute object module) may then be used to generate a HEX file.

    Jon

Children