This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Will the Stack lost in MCU?

Dear frined:

I have many function calling in my program, and i want to know if it has some side-effect such as tack lost or overflow ?



TKS
Morris

Parents
  • You could fill the top few bytes of the stack space with a certain value at the beginning of main(). Run the program trying to exercise the most deeply nested functions then take a look at the top of the stack to see whether it has been used.

    Don't forget that interrupts, if you have any enabled, will asyncronously increase stack usage.

    Stefan

Reply
  • You could fill the top few bytes of the stack space with a certain value at the beginning of main(). Run the program trying to exercise the most deeply nested functions then take a look at the top of the stack to see whether it has been used.

    Don't forget that interrupts, if you have any enabled, will asyncronously increase stack usage.

    Stefan

Children
No data