[RTEMS Project] #3761: RTEMS Object creation failed when using RTEMS with LEON3 BSP.
RTEMS trac
trac at rtems.org
Tue Jun 25 03:50:29 UTC 2019
#3761: RTEMS Object creation failed when using RTEMS with LEON3 BSP.
----------------------+---------------------
Reporter: Ashritha | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone:
Component: admin | Version:
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: |
----------------------+---------------------
Comment (by Ashritha):
Thank You for the reply. I have gone through the link you have provided
and I am aware of it from C User documentation of RTEMS.
However in what case does ID parameter be NULL, When I am very much
declaring it? I have taken the code from the example application(1.37)
provided in the RTEMS C User Documentation. Its as follows :
#include <rtems.h>
#include <bsp.h>
#define CONFIGURE_MAXIMUM_PROCESSORS 2
#define CONFIGURE_SMP_APPLICATION TRUE
#define CONFIGURE_SCHEDULER_PRIORITY_SMP TRUE
rtems_task Init(
rtems_task_argument ignored
)
{
rtems_id id;
status = rtems_task_create(
rtems_build_name( 'T', 'A', ch, ' ' ),
1,
RTEMS_MINIMUM_STACK_SIZE,
RTEMS_NO_PREEMPT,
RTEMS_FLOATING_POINT,
&id
);
if (status!=RTEMS_SUCCESSFUL) {
if (status = RTEMS_INVALID_ADDRESS)
printf("TASK CREATION : RTEMS_INVALID_ADDRESS ERROR \n");
}
}
--
Ticket URL: <http://devel.rtems.org/ticket/3761#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list