Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

Anonymous
Not applicable

Hi,

   

How can I debug the stack usage of my application? I read that I should fill the stack with an arbitrary value and then observe how it changes in time by debugging but how can I fill the stack?

   

Necdet

0 Likes
1 Reply
Bob_Marlowe
Expert II

You could set the memory manually when debugging. Furthermore you can watch the SP register to get a rough estimation when halting at a deep nested or local memory consuming function.

   

 

   

Bob

0 Likes