<p>Is it possible that you underallocated something other than tasks? All those configure commands reserve some space in a shared workspace, and if for example you have timers or more than 21 semaphores then the workspace could be too small.</p>

<p>Another possibility is a bug in confdefs.h where the workspace size is calculated. We would need more info to diagnose further, including how you ./configure RTEMS and some idea of the resources your code uses.</p>
<div class="gmail_quote">On Oct 6, 2011 11:04 AM, "Gabriel Raineri" <<a href="mailto:graineri@invap.com.ar">graineri@invap.com.ar</a>> wrote:<br type="attribution">> Hi everybody!<br>> <br>> I'm having an issue when creating tasks. The thing is that I'm receiving <br>
> RTEMS_UNSATISFIED (not enough memory for stack/FP context) after having <br>> created a bunch of them.<br>> <br>> Let's dig into the details...<br>> <br>> #define CONFIGURE_MAXIMUM_TASKS             25<br>
> #define CONFIGURE_MAXIMUM_SEMAPHORES        21<br>> #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES    14<br>> #define CONFIGURE_MAXIMUM_PARTITIONS        6<br>> #define CONFIGURE_MAXIMUM_TIMERS            0<br>> #define CONFIGURE_MAXIMUM_BARRIERS          1<br>
> <br>> * Tasks are being created after all other RTEMS objects (Semaphores, <br>> Queues, etc.).<br>> * After creating the task #22 and when attempting to create task #23 I <br>> get the aforementioned error code.<br>
> * All tasks are created with a stack size of RTEMS_MINIMUM_STACK_SIZE bytes.<br>> <br>> The weird thing is that if I define CONFIGURE_EXTRA_TASK_STACKS to be <br>> RTEMS_MINIMUM_STACK_SIZE * 5 (20480 bytes) the tasks are created without <br>
> any problem.<br>> <br>> I think I shouldn't need to define CONFIGURE_EXTRA_TASK_STACKS. Am I right?<br>> <br>> Am I missing something?<br>> <br>> Any help will be appreciated!<br>> <br>> Cheers,<br>
> Gabriel<br></div>