consecutive bytes in internal RAM for area DSEG

Discussion in 'Programmer's Corner' started by RaviKumar.N, Feb 14, 2006.

  1. RaviKumar.N

    Thread Starter New Member

    Nov 24, 2005
    4
    0
    Hi All,
    I am Ravikumar.N, using SDCC compiler with Cygnal C8051F130 microcontroller for one of my application. Used large memory model here.

    The folowing is my issue.

    I have declared an array of 600 of type float with the keyword xdata. i.e. xdata float array[600].

    This array is used to store some float values.

    while compiling the application, the application gets compiled well.

    But, while linking the application, the following
    error will be displayed

    ?ASlink-Error-Could not get 97 consecutive bytes in internal RAM for area DSEG.

    what could be the problem. If anybody have faced the same problem please reply as early as possible

    Thanks in advance.
    Ravikumar.N
     
  2. n9352527

    AAC Fanatic!

    Oct 14, 2005
    1,198
    4
    Check your map file. The data segment (DSEG) is only 80H and overlayed with regs, flags and stack. Do some calculations and see whether your idata fits in the remaining space.
     
Loading...