Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

Flash Driver Stack Usage

$
0
0

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?


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>