- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So I built my application in Creator 2.2 for a CY8C38 chip (8kB ram). It says that I've used 15077 of 8192 bytes (184%) of my SRAM.
I guess I'm confussed that it would bulid without errors and even run if I used 187%. Although I haven't tessted all features during run time. Is this some kind of error or will it let me use that much SRAM and not yell at me? I'll post the project if needed, but it's quite messy at the moment.
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's quite shocking.
I've never trusted those reports before because they were not very accurate. But over 80% is just too much.
Those usage reports are quite misleading and could make you choose a more expensive device with more RAM when you don't need it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
BTW, Have you tried building it under Creator 3 ? Creator 3's reports are supposed to be more accurate (but should actually display more RAM usage)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Didn't have this problem before. May be we can see what happened if you can post your project her.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried to update to Creator 3.0, but I was getting errors...that's another story.
Is there a more accurate way to calcuate SRAM used?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe Bob can comment on this, re a malloc like function that returns currently
alolocated memory size ?
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would suggest to reduce the heap to zero when you are not using malloc() and to check the amount of stack compared to your estimation.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@jram.....How could use have used more than the allocated SRAM?
I remember once when I was working on PSoC 3 and had written a code which needed more than the allocated SRAM of 8092 bytes. I tried to run the code and got the error that the size was not enough. So I had to move on to PSoC 5 which offers 65536 of SRAM.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If heap and and stack is an issue, then you should try PSoC5 as 8051 based PSoC3 may not be best suit for your application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So I installed PSoC Creator 3 on a virtual machine. When I built the project it said I was using around 90% or SRAM. I'm pushing it, but that's better than 180%. 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried installing Creator 3.0, but when I tried using it I got lots of errors when trying to build my projects. No errors on the virtual machine.
I'll try installing it again when I get to a safe period between projects.