RAM error

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

hello pls tell me how to tackle the linking error

   

LMM info: area 'ram1' item of 120 bytes allocated in SRAM page 1
!E <library>(2665): {linker} Cannot allocate space for 90 bytes for 'ram0' area
C:\PROGRA~1\Cypress\PSOCDE~1\5.2\Common\CY3E64~1\tools\make: *** [output/Test1.rom] Error -1
 
FOR device CY8C20434_12LKXI.

0 Likes
1 Solution
ArvindK_86
Employee
Employee
10 sign-ins 5 sign-ins 10 solutions authored

 Hello pran,

   

 

   

It looks like there isn't sufficient space left in RAM for declaring your variables.

   

 

   

You can try the following:

   

 

   

1. Remove unwanted global variables

   

2. Remove global variables and implement them as local variables (use STACK instead of RAM)

   

3. Optimize your code

   

 

   

Regards,

   

Arvind

View solution in original post

0 Likes
10 Replies
ArvindK_86
Employee
Employee
10 sign-ins 5 sign-ins 10 solutions authored

 Hello pran,

   

 

   

It looks like there isn't sufficient space left in RAM for declaring your variables.

   

 

   

You can try the following:

   

 

   

1. Remove unwanted global variables

   

2. Remove global variables and implement them as local variables (use STACK instead of RAM)

   

3. Optimize your code

   

 

   

Regards,

   

Arvind

0 Likes
ArvindK_86
Employee
Employee
10 sign-ins 5 sign-ins 10 solutions authored

Knowledge base article on this error - 

   

Error: Cannot allocate space for 'data' area - Cypress Semiconductor

Anonymous
Not applicable

@arvind

   

Does i have to change header file contaning global parameter ..............or change in global paarameters of main.c.....

   

main.c  not contain any global parameter.

   

Pramod

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Your PSoC1 - device has got 512 bytes of static ram and you are using more than that in your program. This is the cause for the errormessage.

   

When you post your complete project here (Use the archive function form Designer 5.3) we all can have a look at and give you some suggestions.

   

 

   

Bob

   

 

   

PS: It would have been more practical to post this in a PSoC1 forum, this is for memory devices.

Anonymous
Not applicable

hi,

   

I am using same project as given in CD with Development KIt(CY8C3280) for practice, i just duplicating it.......project of touch sensing for board CY20X34 (Controllar-CY8C20434-LKXI).

   

I Check Device Resource Meter but it is having ram space (101 used out of 512bytes).

   

Is any settings to be done.......one error has been overcame,allocate 120byte.

   

one error remain .....!E <library>(3135): {linker} Cannot allocate space for 90 bytes for 'ram0' area

   

ROM 8192 used out of 2375.

   

pramod.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

It would be helpfull to have your complete project here so that we all may have a look at. To do so, use the "Create Archive" function in PSoC Designer 5.3  or zip (NOT RAW !!) the complete folder and do an upload here (use internet explorer, chrome may have errors in upüloading).

   

 

   

Bob

Anonymous
Not applicable

@BOB,

   

       HERE is my project.

   

 

   

Regards,

0 Likes
Anonymous
Not applicable

@BOB

   

 

   

SORRY.....Upload wrong project.

   

Uploding correct hear.

   

Regards.

0 Likes
Anonymous
Not applicable

Hi,

   

Good news overcome the above mention problem.

   

Thank You.

   

Pramod.

0 Likes
Anonymous
Not applicable

You  posted that you have overcome this error...  How???

   

I have the same error and gen't get past it.

   

Thanks.

0 Likes