stack/heap usage of PSoC5 | Cypress Semiconductor
stack/heap usage of PSoC5
We are developing a project using PSoC, The project is nearly finished, but we would like know if we can use a bit more RAM for some furture expansion. We sould also like to know how much RAM is being used for stack and heap, (I mean it is ACTUALLY used, not being assigned for ). Any one has any idea how we can get the information. I have this post to Cypress support already, hope some one has done this before.
I know there are programs to trace stack usage but not sure it is aviable for PSOoC5 or G++ lite for ARM devices.
There is another way which is to fill the stack area with a spcial pattern and let the program run and excersise the possible combination and then check the pattern again -( this is not as good as the first one, but at least give some indication of usage.) I am reading the CodeSourcery manual and would like to know if some one has the experience to modify the startup code to do this