Minimal stack size

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello,

What is the minimal stack size requirement for a thread doing almost nothing more that get/set a couple of semaphores: 256 bytes? 512? 1024? 2048? 4096? ...

Is it the same requirement for both RTOS (threadX/FreeRTOS) ?

Is there some Wiced framework components more stack greedy than others ?

Thanks for your answers.

Pascal.

0 Likes
1 Reply
SeyhanA_31
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hi,

Creating a thread and passing a semaphore hook to the created thread to get/set semaphore, 256 bytes stack size is enough.

Ones you utilize the network stack more memory needs to be allocated for the thread.

Seyhan

0 Likes