Read-Only Author REY Stephane Posted 5-Feb-2003 23:39 GMT Toolset C51 |  BL51 troubles from uVision 1 in OBJ files including REY Stephane 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) |
Read-Only Author REY Stephane Posted 6-Feb-2003 10:54 GMT Toolset C51 |  RE: BL51 troubles from uVision 1 in OBJ files including REY Stephane What do you mean by response file ? I've tried the @commandfile where i've listed all the commands : startup.obj, init.obj, rrex.obj, main.obj, uart.obj, glcd.obj, cmdp.obj, hi2c.obj, boot.obj TO TRX RS(256)
with same result |
Read-Only Author REY Stephane Posted 6-Feb-2003 22:45 GMT Toolset C51 |  RE: BL51 troubles from uVision 1 in OBJ files including REY Stephane Jon,
I've tried to include the STARTUP file at the end of the list. No difference.
The INIT.OBJ file listed here isn't the init.a51 from Keil but my applicative init file. However, I've seen that the INIT.OBJ from Keil was deleted due to the same name used for my C applicative init routine. Shame on me !
So, I've renamed the INIT.A51 from Keil as A_INIT.A51 and I've included the A_INIT.OBJ file at the end of the command file when invoking the linker. It has solved some troubles I had....
But the problem is still the same. When adding one OBJ file more, the result is bad ! I think that the problem comes from the DOS command line limitation as mentionned Hans-Bernhard Broeker. The problem is that I don't know how to correct this....
Regards Stephane |