Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to determine stack memory needed for a particular program in a microcontroller?

In case I want to fix the stack size of the program before execution.

user-image
Question added by Deleted user
Date Posted: 2013/06/12
Mahammad Mostafa
by Mahammad Mostafa , Senior C/C++ Developer- Architect , Expandium- Viavisolutions

Fastest way, is to do a recursion, a function that takes one param that represents the recursion depth.. and then run that app.. and whenever it crashes then you are out of stack mem; check the level and multibly with the function stack space.. it will be your stack memory.

 

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.