In multi-threaded embedded software (written in C or C++), a thread must be given enough stack space in order to allow it to complete its operations without overflowing. Co
You can use a static analysis tool like StackAnalyzer, if your target fits the requirements.