cancel
Showing results for 
Search instead for 
Did you mean: 

Class B with Freetos runtime stack overflow detection fails

Prakash2
Associate II

Hi Team,

I am working on the Class B (V2.3.0)library for the STM32H7 series. It works fine without the notifier, but when I use the notifier, the stack section gets flushed, and the runtime stack test fails.

Please help me with this issue. Thank you in advance.

Regards,
Prakash R

2 REPLIES 2
Petr Sladecek
ST Employee

Hello,

the library simply put a field of non trivial patterns at bottom of the stack defined at your project and check integrity of the field content periodically then. If this run time test fails, it is evident that your area reserved by you for the stack is not sufficient, appli faces stack overflow (the field was found overwritten during the appli run by the test). You need to extend the area at this configuration.

Best regards,

Petr

Prakash2
Associate II

Thank you for your response. I am new to the Class B library.

Could you please guide me on where exactly I need to make the necessary extensions?
Should I make changes in the linker script, specifically to _Min_Stack_Size?

Regards,
Prakash R