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

Linking Order

Hello,

I'm using

C51 v 5.10
BL51 v 3.52
uVision v 1.24


1.) When I link object files in the following order, the startup code is not run. Inspection of the .hex file shows that there is no jump to the startup code.

The line to invoke the linker by uVision is:

C:\C51\BIN\BL51.EXE C:\SIEMENS\INIT.OBJ, C:\SIEMENS\STARTUP.OBJ, C:\SIEMENS\myCode.OBJ TO C:\SIEMENS\myCode RS (256)

But if I invoke like:

C:\C51\BIN\BL51.EXE C:\SIEMENS\STARTUP.OBJ, C:\SIEMENS\INIT.OBJ, C:\SIEMENS\myCode .OBJ TO C:\SIEMENS\myCode RS (256)

The startup code runs fine and the jump to it can be easily seen in the first line of the hex file. Can anyone help me?

Thanks,

Bob