1 Reply Latest reply on Jan 21, 2015 9:37 AM by seyhan

    Minimal stack size

    pseguy

      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.

        • 1. Re: Minimal stack size
          seyhan

          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