PSoC >> PSoC Mixed-Signal Array

Pages: 1
FAA
Tester - PRO for PSoC


Reged: Jul 19 2007
Posts: 28
Linker reports more ram than available
      #62822 - Sun Jun 29 2008 02:37 PM

The project is based on a CY8C27443 with only one 256 bytes page of ram memory, but the linker reports 412 bytes of ram memory:
Quote:

Linking..
HI-TECH C COMPILER (Cypress PSOC) Pro candidate build 2249 V9.61PL1
Copyright (C) 1984-2008 HI-TECH SOFTWARE
Memory Summary:
Program space used 1581h ( 5505) of 4000h bytes ( 33.6%)
Data space used 19Ch ( 412) of 100h bytes (160.9%)
Comparative memory usage (excludes absolute areas and stack variables)
ROM used: 4716 bytes
RAM used: 332 bytes
vera02ht - 0 error(s) 1 warning(s) 12:40:13



It seems the difference is in SSCParmBlk, which is declared in startup.as with only 8 bytes, but according to the map file there are 100H bytes reserved:
Quote:

CLASS RAM
SSCParmBl 0 0 100 1



Is this normal?

Regards

FAA


Post Extras: Print Post   Remind Me!   Notify Moderator  
clydeAdministrator
HI-TECH team member
*****

Reged: Oct 16 2003
Posts: 633
Re: Linker reports more ram than available [Re: FAA]
      #62832 - Sun Jun 29 2008 05:44 PM

The flash library routines have an incorrect declaration for the ssc_parmblk ram area, which makes it appear to occupy 256 bytes instead of only 8. This declaration is never used by any of the flash code, so it doesn't affect the generated code, but it fools the compiler driver into thinking there is another 256 bytes in use. Subtract 248 (i.e. 256-8) bytes from the reported number to get the correct value.

Clyde


Post Extras: Print Post   Remind Me!   Notify Moderator  
FAA
Tester - PRO for PSoC


Reged: Jul 19 2007
Posts: 28
Re: Linker reports more ram than available [Re: clyde]
      #62852 - Sun Jun 29 2008 09:09 PM

Clyde:

Thank you for your fast reply.

Regards,

FAA


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 2 anonymous users are browsing this forum.

Moderator:  ndouglas, Dan Henry, jtemples, jeff, Andrew L, mikerj, dave g, meisty, josh stevo 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Topic views: 647

Rate this topic

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5