<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 26 June 2014 08:37, Chris Johns <span dir="ltr"><<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><br>
<br>
On 26/06/2014 12:56 am, Martínez, Pablo wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hi,<br>
<br>
Im having troubles trying to use the class rtemsTask from the the<br>
librtems++.<br>
<br>
(<br>
<a href="https://github.com/atgreen/RTEMS/blob/master/c/src/librtems%2B%2B/include/rtems%2B%2B/rtemsTask.h" target="_blank">https://github.com/atgreen/<u></u>RTEMS/blob/master/c/src/<u></u>librtems%2B%2B/include/rtems%<u></u>2B%2B/rtemsTask.h</a><br>



)<br>
<br>
This class is basically a wrapper for the rtems task api.<br>
<br>
I can create the task successfully (its returns 0), but when I call<br>
start() the entry point origin doesnt start despite returning 0 (this<br>
method just write a memory position to check if the task is working).<br>
<br>
<br>
const rtems_status_code rtemsTask::start(const rtems_task_argument arg)<br>
<br>
<br>
{<br>
if (owner)<br>
<br>
<br>
{<br>
argument = arg;<br>
<br>
<br>
// pass the this pointer as the argument<br>
set_status_code(rtems_task_<u></u>start(id,<br>
origin,<br>
(rtems_task_argument) this));<br>
<br>
<br>
}<br>
else<br>
set_status_code(RTEMS_NOT_<u></u>OWNER_OF_RESOURCE);<br>
return last_status_code();<br>
<br>
<br>
}<br>
<br>
Any help?<br>
<br>
</blockquote>
<br></div></div>
Are the priorities ok ? If not it might not be able to run.<br>
<br></blockquote><div><br></div><div>Im using this parameters to create the task:</div><div><br></div><div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">"SELF"</span></div>

<div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">1  (priority)</span></div><div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">RTEMS_MINIMUM_STACK_SIZE</span></div>

<div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">RTEMS_NO_PREEMPT</span></div><div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">0</span></div>

<div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">RTEMS_NO_FLOATING_POINT</span></div><div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">RTEMS_LOCAL</span><br>

</div><div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px"><br>

</span></div><div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">In C implementation is working fine, but the problem comes with C++.</span></div><div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px"><br>

</span></div><div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">thank u,</span></div><div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px">P</span></div>

<div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:'Courier New',Courier,monospace;font-size:14px"><br>

</span></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Chris<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>
best regards,<br>
<br>
<br>
<br>
--<br>
Martínez, Pablo Agustín<br>
<br>
<br></div>
______________________________<u></u>_________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" target="_blank">http://lists.rtems.org/<u></u>mailman/listinfo/users</a><br>
<br>
</blockquote>
______________________________<u></u>_________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" target="_blank">http://lists.rtems.org/<u></u>mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Martínez, Pablo Agustín
</div></div>