Pc386 bsp problem

Arquer Stephane stephane.arquer at stage.cnes.fr
Mon May 14 09:12:27 UTC 2007


Hi,

Effectively, 50 microseconds was originily set to generate a clock at 32Hz.
But I don't use it for the moment.

I changed this defines to avoid any other problems:
#define CONFIGURE_MICROSECONDS_PER_TICK	1000 
#define CONFIGURE_INIT_TASK_ATTRIBUTES	RTEMS_FLOATING_POINT + RTEMS_GLOBAL

The tasks are created to use floating point, I think the creation function tdemar is correct.

Attached, you 'll find the code I use.

Thanks.

Stéphane.

> -----Message d'origine-----
> De : Daron Chabot [mailto:daron.chabot at usask.ca] 
> Envoyé : vendredi 11 mai 2007 17:49
> À : Arquer Stephane
> Cc : rtems-users at rtems.org
> Objet : Re: Pc386 bsp problem
> 
> 
> 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...
> 
> 
> -- 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
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: init.h
Type: application/octet-stream
Size: 782 bytes
Desc: init.h
URL: <http://lists.rtems.org/pipermail/users/attachments/20070514/c04de39a/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: init.c
Type: application/octet-stream
Size: 10954 bytes
Desc: init.c
URL: <http://lists.rtems.org/pipermail/users/attachments/20070514/c04de39a/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gestionModeleSimulink.c
Type: application/octet-stream
Size: 5049 bytes
Desc: gestionModeleSimulink.c
URL: <http://lists.rtems.org/pipermail/users/attachments/20070514/c04de39a/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gestionModeleSimulink.h
Type: application/octet-stream
Size: 215 bytes
Desc: gestionModeleSimulink.h
URL: <http://lists.rtems.org/pipermail/users/attachments/20070514/c04de39a/attachment-0007.obj>


More information about the users mailing list