Timer problem on TSIM2-eval/LEON3, RTEMS 4.8.0

Tomas Kalibera kalibera at cs.purdue.edu
Thu Aug 14 20:32:02 UTC 2008


Hi,

I seem not to be receiving timer interrupts in TSIM2-LEON3 with RTEMS 
4.8.0. Is the timer supposed to work in the evaluation version of TSIM ? 
Or is any special config needed I am missing ?

My test code is below. On SIS-SPARC, the program works. On TSIM2-LEON3 
it hangs in "rtems_task_wake_after".

Thanks,
Tomas

#include <bsp.h>
#include <stdlib.h>
#include <stdio.h>

rtems_task Init(
  rtems_task_argument ignored
)
{
  printf("About to wait 1 tick...\n");
  rtems_task_wake_after (1)  ;
  printf("Woken up.\n");
  exit( 0 );
}
 
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_MAXIMUM_TASKS 1
#define CONFIGURE_INIT
#include <rtems/confdefs.h>



More information about the users mailing list