problem starting a rtems task

Chris Johns chrisj at rtems.org
Thu Jun 26 21:28:22 UTC 2014


On 26/06/2014 11:54 pm, Martínez, Pablo wrote:
>
>
>
> On 26 June 2014 08:37, Chris Johns <chrisj at rtems.org
> <mailto:chrisj at rtems.org>> wrote:
>
>
>
>     On 26/06/2014 12:56 am, Martínez, Pablo wrote:
>
>         Hi,
>
>         Im having troubles trying to use the class rtemsTask from the the
>         librtems++.
>
>         (
>         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>
>         )
>
>         This class is basically a wrapper for the rtems task api.
>
>         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).
>
>
>         const rtems_status_code rtemsTask::start(const
>         rtems_task_argument arg)
>
>
>         {
>         if (owner)
>
>
>         {
>         argument = arg;
>
>
>         // pass the this pointer as the argument
>         set_status_code(rtems_task___start(id,
>         origin,
>         (rtems_task_argument) this));
>
>
>         }
>         else
>         set_status_code(RTEMS_NOT___OWNER_OF_RESOURCE);
>         return last_status_code();
>
>
>         }
>
>         Any help?
>
>
>     Are the priorities ok ? If not it might not be able to run.
>
>
> Im using this parameters to create the task:
>
> "SELF"
> 1  (priority)
> RTEMS_MINIMUM_STACK_SIZE
> RTEMS_NO_PREEMPT
> 0
> RTEMS_NO_FLOATING_POINT
> RTEMS_LOCAL
>
>
> In C implementation is working fine, but the problem comes with C++.
>

I would need a more complete example to know what is happening.

Chris

> thank u,
> P
>
>
>
>     Chris
>
>         best regards,
>
>
>
>         --
>         Martínez, Pablo Agustín
>
>
>         _________________________________________________
>         users mailing list
>         users at rtems.org <mailto:users at rtems.org>
>         http://lists.rtems.org/__mailman/listinfo/users
>         <http://lists.rtems.org/mailman/listinfo/users>
>
>     _________________________________________________
>     users mailing list
>     users at rtems.org <mailto:users at rtems.org>
>     http://lists.rtems.org/__mailman/listinfo/users
>     <http://lists.rtems.org/mailman/listinfo/users>
>
>
>
>
> --
> Martínez, Pablo Agustín



More information about the users mailing list