Pc386 bsp problem

Joel Sherrill joel.sherrill at oarcorp.com
Fri May 11 15:52:55 UTC 2007


Daron Chabot wrote:
> Without seeing the code in question, it's difficult to diagnose. But, as
> a general comment, 50 microseconds per tick is *extremely* fast: your
> system will spend a good portion of each tick responding to timer
> interrupts...
>   
I didn't notice that.  It should probably be on the order of 1 millisecond.

I also suspect that you might need to turn on floating point for the
init task.  

--joel
>
> -- dc
>
> On Fri, 2007-05-11 at 16:09 +0200, Arquer Stephane wrote:
>   
>> Hi,
>>
>> I am trying to work with code generated by matlab RTW. This soft must be able to run under a Leon 3 or a pc386 platform.
>> I work with Tsim and my code seems to work correcly but when I try to run it on a pc, the task calling the matlab step function crash.
>>
>> Is there a specific configuration to do ?
>>
>> This is my init configuration variables:
>>
>>
>> #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
>> #define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
>> #define CONFIGURE_TEST_NEEDS_TIMER_DRIVER
>>
>> #define CONFIGURE_INIT_TASK_PRIORITY			110
>>
>> #define CONFIGURE_MAXIMUM_TASKS					128
>> #define CONFIGURE_MAXIMUM_SEMAPHORES			20
>> #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES		10
>> #define CONFIGURE_MAXIMUM_TIMERS				16
>> #define CONFIGURE_MAXIMUM_PERIODS				16
>>
>> #define CONFIGURE_MICROSECONDS_PER_TICK			50		// 1 tick toute les 50µs
>> #define CONFIGURE_TICKS_PER_TIMESLICE			200
>>
>> #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
>>
>> #ifdef pc386
>> #define CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE rtems_driver_address_table Device_drivers[5] = {    CONSOLE_DRIVER_TABLE_ENTRY,    TTY1_DRIVER_TABLE_ENTRY,
>>    TTY2_DRIVER_TABLE_ENTRY,
>>    CLOCK_DRIVER_TABLE_ENTRY,    {NULL, NULL, NULL, NULL, NULL, NULL} }; #endif	//pc386
>>  #define CONFIGURE_EXTRA_TASK_STACKS         (3 * RTEMS_MINIMUM_STACK_SIZE) 
>> #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS		10
>> #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS	10
>>
>> #include <confdefs.h>
>>
>>
>> Regards.
>>
>> Stephane.
>>
>> _______________________________________________
>> rtems-users mailing list
>> rtems-users at rtems.com
>> http://rtems.rtems.org/mailman/listinfo/rtems-users
>>     
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>   




More information about the users mailing list