I configured CubeMX STM32 to use FreeRTOS stack overflow monitoring. Now I want to test that it in fact works. I tried some simple stuff like executing below function in one of the threads
`// C program to demonstrate stack overflow
// by creating a non-terminating recursive
// function.
void fun(int x)
{
if (x == 1)
return;
x = 6;
fun(x);
}
int x = 5;
fun(x);
but I get HardFault.
Do you know a way to simulate stack overflow on FreeRTOS?