_Internal_error_Occurred() in _Thread_Handler()

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Mar 28 13:40:02 UTC 2013


On 03/28/2013 01:26 PM, Matthew J Fletcher wrote:
> Hi,
>
> I am getting the above and presume i've made a mistake in some part of my setup.
>
> I know task switching works, i switch between the idle task and my Init() task
> fine, this error seems to occur in the task switch that occurs after i
> rtems_task_suspend() the Init() task. That in itself i guess is fine, most of
> the examples do it.
>
> Would the above happen if there were no ready to be scheduled tasks except the
> idle task ?

The only internal error in _Thread_Handler() is INTERNAL_ERROR_THREAD_EXITTED. 
  The classic API tasks must not return.  You have to delete them, e.g. with 
rtems_task_delete(RTEMS_SELF);

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list