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

Link Problem

Hi
I need to put some function in the first 8k
area of my program.
The function that i will put there is.
START_MXB.asm
Interrupt
and my bootloader.
This area should not be optmized and i don't
want any library function in this area.

My function main should start at 0x2000.
And here I want to optimize.

How should i set up my linker to solve this?

Parents
  • Hi
    I try'd to do that, and get this Error.

    *** ERROR L115: PARTIAL SEGMENT BELONGS TO DIFFERENT MEMORY CLASS
    SEGMENT: ?C_C51STARTUP
    MODULE: E:\KEIL\C51\LIB\CX51L.LIB (?C_INIT)


    And if i want to read more about "ERROR L115" I get this answer.

    *** Error L115
    INPAGE SEGMENT IS GREATER THAN 256 BYTES
    SEGMENT: segment-name


    I'm a little bit confused!

    Ingvar

Reply
  • Hi
    I try'd to do that, and get this Error.

    *** ERROR L115: PARTIAL SEGMENT BELONGS TO DIFFERENT MEMORY CLASS
    SEGMENT: ?C_C51STARTUP
    MODULE: E:\KEIL\C51\LIB\CX51L.LIB (?C_INIT)


    And if i want to read more about "ERROR L115" I get this answer.

    *** Error L115
    INPAGE SEGMENT IS GREATER THAN 256 BYTES
    SEGMENT: segment-name


    I'm a little bit confused!

    Ingvar

Children