Running out of RAM, ROM of course | Cypress Semiconductor
Running out of RAM, ROM of course
Well, I'm upgrading the product from PSoC1 to PSoC5, and I'm STILL running out of ram and rom.
I've looked at thousands of compile .map files over my career, but haven't looked at a PSoC one yet. So can you please help me out of my confusion a little?
First, I find the following:
Name Origin Length Attributes
rom 0x00000000 0x00010000 xr
ram 0x1fffe000 0x00002000 xrw
The rom length of 0x10000 = 64kB matches the CY8C5566LTI-017 websheet at http://www.cypress.com/?mpn=CY8C5566LTI-017 as well as Table 12-1 of the datasheet linked therefrom.
HOWEVER, the ram length of 0x2000 = 2kB does NOT. Both say the chip should have 16kB = 0x4000. What am I missing?
Meanwhile, way too much of the rom is consumed already. My application program is only a shell so far. I figure it must be lots of code behind due to all the components I'm using in the TopDesign. Looking through the .map, I find a couple sections CyPmHib... that consume nearly 5kB, nearly 8% of the total available. There's also _svfprintf_r requiring over 5kB. Now 16% enters my concern. I commented out my use of hibernate, but only saved 0.4kB, not 5kB. I'll analyze this further, so I'm not necessarily asking for a comment on it right now. I'm mostly consumed about the ram size above.