problem starting a rtems task
Martínez, Pablo
pabloa.mar at gmail.com
Thu Jun 26 13:54:24 UTC 2014
On 26 June 2014 08:37, Chris Johns <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
>> )
>>
>> 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++.
thank u,
P
> Chris
>
> best regards,
>>
>>
>>
>> --
>> Martínez, Pablo Agustín
>>
>>
>> _______________________________________________
>> users mailing list
>> users at rtems.org
>> http://lists.rtems.org/mailman/listinfo/users
>>
>> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
>
--
Martínez, Pablo Agustín
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20140626/491220dd/attachment-0002.html>
More information about the users
mailing list