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

Address Space overflow

I am using 8051F120 having 127KB Program memory, theoretically. I have written 4 *.C files residing in each bank. The length of the code in Bank1 and Bank2 is less than 32KB (observing the list file). But, instead of this, the linker gives an address space overflow for both the banks.
Kindly assist.

Dhaval Solanki

Parents
  • The following extract from M51:

    BL51 BANKED LINKER/LOCATER V6.05, INVOKED BY:
    C:\KEIL\C51\BIN\BL51.EXE
    D:\dhaval's disso\DissoVer4.41C_i2c\common.obj, D:\dhaval's disso\DissoVer4.41C_i2c\L51_BANK.obj, BANK1
    {D:\dhaval's disso\DissoVer4.41C_i2c\main.obj}, BANK3
    {D:\dhaval's disso\DissoVer4.41C_i2c\screens.obj}, D:\dhaval's disso\DissoVer4.41C_i2c\STARTUP.obj, BANK2
    {D:\dhaval's disso\DissoVer4.41C_i2c\menu.obj} TO D:\dhaval's disso\DissoVer4.41C_i2c\TDT08L
    
    RS (256) PL (68) PW (78) BANKAREA (8000H, 0FFFFH)
    

    So, the simplistic view would be that your banked code should start at 0x8000, but you need to check other parameters that might cause it to be starting further up.

    What type of Parameters are you referring to? Can you give an example?

Reply
  • The following extract from M51:

    BL51 BANKED LINKER/LOCATER V6.05, INVOKED BY:
    C:\KEIL\C51\BIN\BL51.EXE
    D:\dhaval's disso\DissoVer4.41C_i2c\common.obj, D:\dhaval's disso\DissoVer4.41C_i2c\L51_BANK.obj, BANK1
    {D:\dhaval's disso\DissoVer4.41C_i2c\main.obj}, BANK3
    {D:\dhaval's disso\DissoVer4.41C_i2c\screens.obj}, D:\dhaval's disso\DissoVer4.41C_i2c\STARTUP.obj, BANK2
    {D:\dhaval's disso\DissoVer4.41C_i2c\menu.obj} TO D:\dhaval's disso\DissoVer4.41C_i2c\TDT08L
    
    RS (256) PL (68) PW (78) BANKAREA (8000H, 0FFFFH)
    

    So, the simplistic view would be that your banked code should start at 0x8000, but you need to check other parameters that might cause it to be starting further up.

    What type of Parameters are you referring to? Can you give an example?

Children