title: How to Find Stack Overflow in Microcontrollers using C in Run Time
body: <p>I am creating the application on STM32 microcontroller. I am using some library stack. Above that stack, I am using my application. I have two questions:</p>
  
  <ol>
  <li><p>How can I detect and handle the stack over flow in runtime. Because I don't know how much memory that library is using.</p></li>
  <li><p>How can I detect and handle the stack over flow in runtime if I am developing the code from the scratch. I read some where we have to maintain some count for each declaration. Is this correct way or any standard way to find it.</p></li>
  </ol>