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

BL51 troubles from uVision 1 in OBJ files including

Hi people,

I'm using the old version of Keil compiler uVison 1.
The linker is BL51 V3.70
I'm building my project from a batch file where I'm invoking the linker by the following command :

bl51 startup.obj, init.obj,  rrex.obj,  main.obj,  uart.obj,  glcd.obj,  cmdp.obj,  hi2c.obj,  boot.obj TO TRX RS(256)
It's working correctly and the result is :
*** WARNING 16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?C_INITSEG

*** WARNING 16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR?_HI2C_SENDI2C?HI2C

*** WARNING 16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR?_HI2C_RECEIVEI2C?HI2C

LINK/LOCATE RUN COMPLETE.  3 WARNING(S),  0 ERROR(S)
Now, I want to include one OBJ file more. The command line becomes :
bl51 startup.obj, init.obj,  rrex.obj,  main.obj,  uart.obj,  glcd.obj,  cmdp.obj,  hi2c.obj,  boot.obj, hrtc.obj TO TRX RS(256)
And the result is :
*** WARNING 16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?C_INITSEG

*** WARNING 16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR?HRTC_INIT?HRTC

*** WARNING 16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR?_HRTC_SETDATE?HRTC

*** WARNING 16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR?HRTC_READDATE?HRTC

LINK/LOCATE RUN COMPLETE.  4 WARNING(S),  0 ERROR(S)

You can see that the HI2C uncalled segments are not listed whereas the new included OBJ file doesn't call any HI2C routine.
The code crashes when executing.

It seems that BL51 doesn't want more OBJ files to be included and moreover it doesn't list any error or warning concerning this trouble.

I've tried to call a @commandfile where are listed all my files and commands when invoking the linker but this is the same result.

Has anyone already encountered a similar problem ?
Is there a way to solve it ?

Without this, my project is stopped. I've still several OBJ files to include (maybe 15 for the whole project)