Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > Memory > RAM error

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



RAM error
Moderator:
PRIT

Post Reply
Follow this topic



RAM error

pran posted on 08 Feb 2013 11:04 PM PST
Member
6 Forum Posts

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.

 




Re: RAM error

arvi posted on 08 Feb 2013 11:54 PM PST
Cypress Employee
98 Forum Posts

 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



Re: RAM error

arvi posted on 08 Feb 2013 11:56 PM PST
Cypress Employee
98 Forum Posts

 

Knowledge base article on this error - 

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



Re: RAM error

pran posted on 08 Feb 2013 03:08 AM PST
Member
6 Forum Posts

@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



Re: RAM error

Bob Marlowe posted on 08 Feb 2013 03:56 AM PST
Top Contributor
1465 Forum Posts

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.



Re: RAM error

pran posted on 11 Feb 2013 08:54 PM PST
Member
6 Forum Posts

 

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.



Re: RAM error

Bob Marlowe posted on 12 Feb 2013 12:36 AM PST
Top Contributor
1465 Forum Posts

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



Re: RAM error

pran posted on 13 Feb 2013 02:51 AM PST
Member
6 Forum Posts

@BOB,

       HERE is my project.

 

Regards,



Re: RAM error

pran posted on 13 Feb 2013 02:56 AM PST
Member
6 Forum Posts

@BOB

 

SORRY.....Upload wrong project.

Uploding correct hear.

Regards.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.