PSoC >> PSoC Mixed-Signal Array

Pages: 1
Poppe
newbie


Reged: Nov 15 2007
Posts: 36
Loc: Burlington, Vermont, USA
Reported RAM usage
      #54372 - Mon May 05 2008 04:06 PM

I just recompiled a program using build 2232. As the code seems to work and no warnings or errors were reported I almost overlooked the report that I was using 178.5% of the available RAM. The IM compiler reports 158 bytes of RAM used, which is close to what experience leads me to expect.

The target device is the CY8C27443. The report follows:

Linking..
HI-TECH C COMPILER (Cypress PSOC) Pro candidate build 2232 V9.61PL1
Copyright (C) 1984-2008 HI-TECH SOFTWARE
Serial number: HCPSOC-287058876
Memory Summary:
Program space used 2EF8h ( 12024) of 4000h bytes ( 73.4%)
Data space used 1C9h ( 457) of 100h bytes (178.5%)
Comparative memory usage (excludes absolute areas and stack variables)
ROM used: 11629 bytes
RAM used: 379 bytes

procut28 - 0 error(s) 0 warning(s) 15:49:31

Suggestions?

Martin


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

Reged: Oct 16 2003
Posts: 633
Re: Reported RAM usage [Re: Poppe]
      #54432 - Tue May 06 2008 01:22 AM

I'd suggest looking at the link map. More than likely it's something like a spurious absolute psect.


Clyde

Edited by clyde (Tue May 06 2008 01:23 AM)


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

Reged: Oct 16 2003
Posts: 633
Re: Reported RAM usage [Re: Poppe]
      #54442 - Tue May 06 2008 01:23 AM

Sorry, cancel that comment about updating.. just a bit of brain fade on my part.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Poppe
newbie


Reged: Nov 15 2007
Posts: 36
Loc: Burlington, Vermont, USA
Re: Reported RAM usage [Re: Poppe]
      #54522 - Tue May 06 2008 08:59 AM Attachment (44 downloads)

Clyde,

I see 0x100 length section SSCParmBl (N.b., I do not know what this is), but this appears to be overlaid by other code, of size 0xC9, while the reported total usage is the sum of the two 0x1C9. I have attached the map.

Martin


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


Reged: Jun 29 2007
Posts: 2
Re: Reported RAM usage [Re: Poppe]
      #54542 - Tue May 06 2008 12:48 PM

Hello This for report. Yesterday I have cloned and cutting a project from an 29566 to an 27533 micro and I have the same report on the out of ram memory (460 byte of ram, 9.200 byte of rom with Hi-Tech). But if I compile it with the Imagecraft it report 159 byte of ram, 12500 byte of rom; and it is right! Marco

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

Reged: Oct 16 2003
Posts: 633
Re: Reported RAM usage [Re: Poppe]
      #54602 - Tue May 06 2008 11:02 PM

SSCParmBlk is the space reserved for the SSC instruction parameters and should start at 0xF8. I have seen some usermodules that simply declare an absolute AREA without an ORG directive which can produce symptoms similar to what you are seeing.

I believe the report is harmless, but if you want to track it down further, either search the .asm files in the lib/ directory for the SSCParmBlk area, or you could send the project to support@htsoft.com and we can have a look.

Clyde


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

Reged: Oct 16 2003
Posts: 633
Re: Reported RAM usage [Re: mcariboni]
      #54962 - Wed May 07 2008 11:58 PM

The additional RAM is caused by an error in the flash libraries. These aren't supplied in source form with PD, but one of the modules contains an erroneous declaration of the SSCParmBlk area. The effect is that it appears to occupy 256 bytes instead of 8.

There is no effect on the operation of the program. I have reported this issue to Cypress, hopefully it will be fixed in a later release of PD.

Clyde


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: 1352

Rate this topic

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5