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

Max stack usage, can uVision register it?

Hi All,

Anyone knows if uVision can register the maximum stack usage in debug mode?.. Is very useful to run the code in the target and then check the maximum usage of the stack in any moment in order to be safe about the size. Perhaps anyone knows a better way to calculate it.

Thanks

Parents
  • The method described can be quite a useful indicator, but remember ...

    when you look at the stack after your run don't assume it is the absolute maximum use, because it may not be. It is the use of a run up to that point. The absolute maximum would be the result of worst case nestings and might only occur infrequently.

Reply
  • The method described can be quite a useful indicator, but remember ...

    when you look at the stack after your run don't assume it is the absolute maximum use, because it may not be. It is the use of a run up to that point. The absolute maximum would be the result of worst case nestings and might only occur infrequently.

Children