Timer problem on TSIM2-eval/LEON3, RTEMS 4.8.0

Tomas Kalibera kalibera at cs.purdue.edu
Fri Aug 15 15:04:53 UTC 2008


 
I've downloaded the latest TSIM (2.0.10b), in which the timer works fine 
for me. It didn't work in 2.0.10 (which expired August 1 - so I don't 
know if it was the expiration or a bug).

Thank you for your tests !

Tomas

Jiri Gaisler wrote:
>
> Work OK here with our pre-built RTEMS tool-chain :
>
> jiri at antec:~/tmp$ /opt/rtems-4.8/bin/sparc-rtems-gcc -g xxx.c
> jiri at antec:~/tmp$ ~/tsim-eval/tsim/linux/tsim-leon3 a.out
>
>  This TSIM evaluation version will expire February 1, 2009
>
>
>  TSIM/LEON3 SPARC simulator, version 2.0.10b (evaluation version)
>
>  Copyright (C) 2001, Gaisler Research - all rights reserved.
>  This software may only be used with a valid license.
>  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 16 M SDRAM memory, in 1 bank
> 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 81344 bytes
> section: .data, addr: 0x40013dc0, size 3520 bytes
> section: .jcr, addr: 0x40014b80, size 4 bytes
> read 627 symbols
> tsim> go
> resuming at 0x40000000
> About to wait 1 tick...
> Woken up.
>
> Program exited normally.
> tsim>
>
>
> Jiri.
>
> 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
>>
>>




More information about the users mailing list