02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

J<br />

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

TEST LIST<br />

The target test library pkLib.c is compiled for each <strong>BSP</strong> by copying the file into the <strong>BSP</strong><br />

directory. The bspVal script checks for the existence of pkLib.o, copies the source file to<br />

the <strong>BSP</strong> directory if necessary, generates pkLib.o, and loads it onto the target. If you make<br />

any changes to the files in $WIND_BASE/target/src/test/bspVal, you must delete pkLib.o<br />

and unload the previous object module from the target so that the latest code is used.<br />

The tclserial directory contains the source files for the functions used to access the serial<br />

port on the host that is bound to Tcl. The serLib.tcl file contains a set of library functions<br />

that are an extension of tclserial.<br />

Every test has to be invoked using the bspVal command with required options. Tests<br />

involving single target and no reboot are run first, followed by tests involving two targets,<br />

followed by clock tests, followed by tests that reboot the target. Within these limitations,<br />

you can specify the order in which the tests are run.<br />

After parsing through the command line parameters, bspVal:<br />

1. Checks the validity of the target server(s) specified using a checkServerName library<br />

function.<br />

2. Sources the configuration parameters from the resource directory.<br />

3. Reboots the target(s) if necessary (an option you can specify).<br />

4. Loads pkLib.o on the target.<br />

5. Opens a pipeline to windsh to send commands to source the Tcl scripts and run the<br />

tests.<br />

You can abort the test scripts at any time using an interrupt signal (normally CTRL+c).<br />

However, the target board might continue to execute local tasks. This situation could<br />

leave the board in such a state that a power-cycle reset is necessary.<br />

This section lists all the tests currently included in the <strong>BSP</strong> validation test suite. Some tests<br />

run stand-alone. Some require a reference board. The tests listed below run stand-alone.<br />

auxClock<br />

Tests auxiliary clock’s functionality.<br />

baudConsole<br />

Tests console’s ability to communicate at all supported serial baud rates.<br />

bootline<br />

Verifies commands executable from vxWorks boot prompt.<br />

eprom<br />

Verifies ROM read operations.<br />

error1<br />

Verifies the target local bus access, off-board bus access and divide by zero exceptions<br />

initiated from the target shell.<br />

J<br />

369

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

Saved successfully!

Ooh no, something went wrong!