<div dir="ltr">Hi,<div><br></div><div>Im having troubles trying to use the class <span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;white-space:pre">rtemsTask from the</span> the librtems++.</div>

<div><br></div><div>( <a href="https://github.com/atgreen/RTEMS/blob/master/c/src/librtems%2B%2B/include/rtems%2B%2B/rtemsTask.h">https://github.com/atgreen/RTEMS/blob/master/c/src/librtems%2B%2B/include/rtems%2B%2B/rtemsTask.h</a> )<br>

</div><div><div><br></div><div>This class is basically a wrapper for the rtems task api. </div><div><br></div><div>I can create the task successfully (its returns 0), but when I call start() the entry point origin doesnt start despite returning 0 (this method just write a memory position to check if the task is working).</div>

<div><br></div><div><br></div><div><pre style="overflow:auto;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:18px"><div class="" id="LC192" style="padding-left:10px;height:18px">

<span class="" style="font-weight:bold">const</span> <span class="">rtems_status_code</span> <span class="">rtemsTask</span><span class="" style="font-weight:bold">::</span><span class="">start</span><span class="">(</span><span class="" style="font-weight:bold">const</span> <span class="">rtems_task_argument</span> <span class="">arg</span><span class="">)</span></div>

<div class="" id="LC193" style="padding-left:10px;height:18px"><span class="">{</span></div><div class="" id="LC194" style="padding-left:10px;height:18px">  <span class="" style="font-weight:bold">if</span> <span class="">(</span><span class="">owner</span><span class="">)</span></div>

<div class="" id="LC195" style="padding-left:10px;height:18px">  <span class="">{</span></div><div class="" id="LC196" style="padding-left:10px;height:18px">    <span class="">argument</span> <span class="" style="font-weight:bold">=</span> <span class="">arg</span><span class="">;</span></div>

<div class="" id="LC197" style="padding-left:10px;height:18px">    <span class="" style="color:rgb(153,153,136);font-style:italic">// pass the this pointer as the argument</span></div><div class="" id="LC198" style="padding-left:10px;height:18px">

    <span class="">set_status_code</span><span class="">(</span><span class="">rtems_task_start</span><span class="">(</span><span class="">id</span><span class="">,</span></div><div class="" id="LC199" style="padding-left:10px;height:18px">

                                     <span class="">origin</span><span class="">,</span></div><div class="" id="LC200" style="padding-left:10px;height:18px">                                     <span class="">(</span><span class="">rtems_task_argument</span><span class="">)</span> <span class="" style="font-weight:bold">this</span><span class="">));</span></div>

<div class="" id="LC201" style="padding-left:10px;height:18px">  <span class="">}</span></div><div class="" id="LC202" style="padding-left:10px;height:18px">  <span class="" style="font-weight:bold">else</span></div><div class="" id="LC203" style="padding-left:10px;height:18px">

    <span class="">set_status_code</span><span class="">(</span><span class="">RTEMS_NOT_OWNER_OF_RESOURCE</span><span class="">);</span></div><div class="" id="LC204" style="padding-left:10px;height:18px">  <span class="" style="font-weight:bold">return</span> <span class="" style="color:rgb(153,0,0);font-weight:bold">last_status_code</span><span class="">();</span></div>

<div class="" id="LC205" style="padding-left:10px;height:18px"><span class="">}</span></div><div class="" id="LC205" style="padding-left:10px;height:18px"><span class=""><br></span></div><div class="" id="LC205" style="padding-left:10px;height:18px">

<span class="">Any help?</span></div><div class="" id="LC205" style="padding-left:10px;height:18px"><span class=""><br></span></div><div class="" id="LC205" style="padding-left:10px;height:18px"><span class="">best regards,</span></div>

<div class="" id="LC205" style="padding-left:10px;height:18px"><span class=""><br></span></div></pre></div>-- <br>Martínez, Pablo Agustín
</div></div>