EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

consecutive bytes in internal RAM for DSEG

Started by Unknown February 14, 2006
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

ravikumar.n@sunlux-india.com wrote:
> 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
You havent got your linker setup correctly, you need to read the manul to find out how to setup your external data section.
ravikumar.n@sunlux-india.com wrote:
> Hi All, > I am Ravikumar.N, using SDCC compiler with Cygnal C8051F130 > microcontroller for one of my application. Used large memory model > here.
...
> 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.
The key here is "internal". I have not used the SDCC compiler, but I think it means that you are declaring an array of 97 bytes (not the one you mentioned) for storage in DATA or IDATA. If so, more it to XDATA. -- Thad
Thad Smith wrote:
> ravikumar.n@sunlux-india.com wrote: >> Hi All, >> I am Ravikumar.N, using SDCC compiler with Cygnal C8051F130 >> microcontroller for one of my application. Used large memory model >> here. > ... >> 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. > > The key here is "internal". I have not used the SDCC compiler, but I > think it means that you are declaring an array of 97 bytes (not the one > you mentioned) for storage in DATA or IDATA. If so, more it to XDATA. >
Maybe not an array but the Data Segment itself. he may have used it up with variables. Will you have room for a stack?

The 2024 Embedded Online Conference