Timer problem on TSIM2-eval/LEON3, RTEMS 4.8.0
Joel Sherrill
joel.sherrill at OARcorp.com
Thu Aug 14 21:10:55 UTC 2008
Also works for me on standard RTEMS 4.8 tools and
tsim 2.0.5.
TSIM/LEON3 SPARC simulator, version 2.0.5 (professional version)
Copyright (C) 2001, Gaisler Research - all rights reserved.
For latest updates, go to http://www.gaisler.com/
Comments or bug-reports to tsim at gaisler.com
serial port A on stdin/stdout
allocated 4096 K RAM memory, in 1 bank(s)
allocated 2048 K ROM memory
icache: 1 * 4 kbytes, 16 bytes/line (4 kbytes total)
dcache: 1 * 4 kbytes, 16 bytes/line (4 kbytes total)
section: .text, addr: 0x40000000, size 95584 bytes
section: .data, addr: 0x40017560, size 3616 bytes
section: .jcr, addr: 0x40018380, size 4 bytes
read 545 symbols
tsim> go
resuming at 0x40000000
About to wait 1 tick...
Woken up.
--joel
Tomas Kalibera wrote:
> 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>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list