<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1"><font face="Verdana">Solved! <br>
<br>
I forgot to add:<br>
</font></font>
<pre>#define CONFIGURE_MESSAGE_BUFFER_MEMORY \
CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE( _maxQ1, _sizeQ1) + \
CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE( _maxQ2, _sizeQ2) + \</pre>
<font size="-1"><font face="Verdana">Thanks everybody!<br>
<br>
Cheers,<br>
G.<br>
<br>
PS: Dumb, dumb, dumb...<br>
<br>
</font></font><br>
On 06-Oct-11 1:06 PM, Joel Sherrill wrote:
<blockquote cite="mid:4E8DD214.1070808@oarcorp.com" type="cite">On
10/06/2011 10:53 AM, Gedare Bloom wrote:
<br>
<blockquote type="cite">
<br>
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.
<br>
<br>
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.
<br>
<br>
</blockquote>
This is sadly always a possibility. All it takes is missing one
allocation
<br>
on task create.
<br>
<br>
If you can put together a VERY simple test case with nothing but
tasks
<br>
that does it, we can file a PR and I can look into it.
<br>
<br>
--joel
<br>
<blockquote type="cite">On Oct 6, 2011 11:04 AM, "Gabriel Raineri"
<<a class="moz-txt-link-abbreviated" href="mailto:graineri@invap.com.ar">graineri@invap.com.ar</a>
<a class="moz-txt-link-rfc2396E" href="mailto:graineri@invap.com.ar"><mailto:graineri@invap.com.ar></a>> wrote:
<br>
> 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>
</blockquote>
<br>
<br>
</blockquote>
</body>
</html>