rtems_rate_monotonic_create return 5

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Sep 15 11:23:11 UTC 2011


On 09/15/2011 09:19 AM, Asma Mehiaoui wrote:
> Hi,
>
> i'm trying to create a periodic task but the statut of
> "rtems_rate_monotonic_create" return 5.

It doesn't return a simple 5 it returns a rtems_status_code.  Which is 
RTEMS_TOO_MANY in this case.  You can look in the manual what this means.

[...]
> /**************** START OF CONFIGURATION INFORMATION ****************/
>
> #define CONFIGURE_INIT
>
> #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
> #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
>
> #define CONFIGURE_MAXIMUM_TASKS 3
>
> #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
> #define CONFIGURE_INIT_TASK_STACK_SIZE (2 * RTEMS_MINIMUM_STACK_SIZE)
>
> #define CONFIGURE_EXTRA_TASK_STACKS (4 * RTEMS_MINIMUM_STACK_SIZE)
>
> #include <rtems/confdefs.h>
>
> /**************** END OF CONFIGURATION INFORMATION ****************/

You only requested three task objects and nothing else.  Thus you have no 
period objects to create.

Try to use this:

#define CONFIGURE_MAXIMUM_PERIODS 1

Or this:

#define CONFIGURE_UNIFIED_WORK_AREAS

#define CONFIGURE_MAXIMUM_BARRIERS rtems_resource_unlimited(4)
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES rtems_resource_unlimited(4)
#define CONFIGURE_MAXIMUM_PARTITIONS rtems_resource_unlimited(4)
#define CONFIGURE_MAXIMUM_PERIODS rtems_resource_unlimited(4)
#define CONFIGURE_MAXIMUM_REGIONS rtems_resource_unlimited(4)
#define CONFIGURE_MAXIMUM_SEMAPHORES rtems_resource_unlimited(4)
#define CONFIGURE_MAXIMUM_TASKS rtems_resource_unlimited(4)
#define CONFIGURE_MAXIMUM_TASK_VARIABLES rtems_resource_unlimited(4)
#define CONFIGURE_MAXIMUM_TIMERS rtems_resource_unlimited(4)

-- 
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
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