02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

J<br />

<strong>BSP</strong> Validation Test Suite Reference Entries<br />

CONFIGURATION PARAMETERS<br />

proper values. For fast target boards, it might be necessary to increase the busy-wait<br />

delays given by the T1_TAS_DELAY (T2_TAS_DELAY) macro.<br />

The two tests in this script require two unique cache-coherent memory locations on master<br />

that can be accessed by both master and slave. By default, these locations are obtained by<br />

calls to cacheDmaMalloc( ) on the master. Alternatively, the macros T1_COUNT_ADRS<br />

and/or T1_SEM_ADRS can be changed from the default of “-1” to point to unique shared<br />

memory addresses on master. In this case, the user must make sure that these are free<br />

cache-coherent memory locations. The ability to explicitly declare these locations is<br />

provided for debugging purposes and for boards with hardware limitations. The final<br />

validation should leave the macros set to “-1”, and allocate the memory dynamically by<br />

calling cacheDmaMalloc( ).<br />

Barring serious hardware or software limitations (such as an identifiable VxWorks<br />

problem), the target board must pass all tests for the <strong>BSP</strong> to be validated. Of course, if the<br />

VME backplane is not supported by the target board, then this test is not a <strong>BSP</strong> validation<br />

requirement.<br />

T1_COUNT_ADRS<br />

Address of master’s shared counter (optional).<br />

T1_SEM_ADRS<br />

Address of master’s shared semaphore (optional).<br />

T1_TAS_DELAY<br />

Busy delay during TAS on master (optional).<br />

T2_TAS_DELAY<br />

Busy delay during TAS on slave (optional).<br />

EXAMPLE<br />

SEE ALSO<br />

Output consists of:<br />

<strong>BSP</strong> VALIDATION TEST<br />

-------------------<br />

Target server : t53-160<br />

<strong>BSP</strong><br />

: mv147<br />

Second target server : t214-2<br />

Second <strong>BSP</strong><br />

: mv147<br />

Log file<br />

: /tmp/bspValidationLog.6425<br />

busTas:<br />

short-term TAS test<br />

: PASS<br />

long-term TAS test<br />

: PASS<br />

Tests RUN 2<br />

Tests PASSED 2<br />

Tests FAILED 0<br />

Tests SKIPPED 0<br />

bspVal.sh, smLib.tcl, pkLib.c<br />

J<br />

379

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!