Pc386 bsp problem

Arquer Stephane stephane.arquer at stage.cnes.fr
Fri May 11 14:09:32 UTC 2007


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.




More information about the users mailing list