Hi,
Suddenly my program started to corrupt some variables.
I took a look at my threads stacks in the RTOS Resouces and discovered that one of my threads is always at the maximum stack size.
I tried to increase the stack size, but it always uses the whole stack.
I started putting some breakpoint and discovered that the problem occurs when calling "if(flash.p_api->open(flash.p_ctrl, flash.p_cfg) != SSP_SUCCESS)".
Before this call, the MaxStackUsage is 836, after this call it goes to 8192 (which is the StackSize).
Is it expected?