leon3 timer tests

Jerry Needell jerry.needell at unh.edu
Tue Jul 11 13:41:03 UTC 2006


Joel,
    In looking at the testsuite I noticed that the LEON3 timeter tests 
have not been working properly. All of the time checks return 0. This 
was the case in 4.6.6 as well as 4.6.99.3
It looks like the CLOCK driver must als be installed for these test to 
work properly. For eaxmple, in tm29.
I found that I had to add
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
to system.h
After that it worked. - examples below.
- Jerry


************* without CLOCK Driver
[needell at gjn tm29]$ tsim 
/opt/rtems/sparc-rtems/leon3/lib/rtems-4.7/tests/tm29.exe

This TSIM evaluation version will expire February 1, 2007


 TSIM/LEON3 SPARC simulator, version 2.0.4 (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 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 121488 bytes
section: .data, addr: 0x4001da90, size 2768 bytes
section: .jcr, addr: 0x4001e560, size 4 bytes
read 545 symbols
tsim> go
resuming at 0x40000000


*** TIME TEST 29 ***
rtems_rate_monotonic_create 0
rtems_rate_monotonic_period: initiate period -- returns to caller 0
rtems_rate_monotonic_period: obtain status 0
rtems_rate_monotonic_cancel 0
rtems_rate_monotonic_delete: inactive 0
rtems_rate_monotonic_delete: active 0
rtems_rate_monotonic_period: conclude periods -- caller blocks 0
*** END OF TEST 29 ***

Program exited normally.
tsim>

*****************With CLOCK Driver
[needell at gjn tm29]$ tsim o-optimize/tm29.exe

This TSIM evaluation version will expire February 1, 2007


 TSIM/LEON3 SPARC simulator, version 2.0.4 (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 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 121584 bytes
section: .data, addr: 0x4001daf0, size 2784 bytes
section: .jcr, addr: 0x4001e5d0, size 4 bytes
read 546 symbols
tsim> go
resuming at 0x40000000


*** TIME TEST 29 ***
rtems_rate_monotonic_create 7
rtems_rate_monotonic_period: initiate period -- returns to caller 13
rtems_rate_monotonic_period: obtain status 3
rtems_rate_monotonic_cancel 7
rtems_rate_monotonic_delete: inactive 9
rtems_rate_monotonic_delete: active 9
rtems_rate_monotonic_period: conclude periods -- caller blocks 25
*** END OF TEST 29 ***

Program exited normally.
tsim>






More information about the users mailing list