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.

VxWorks 5.5<br />

<strong>BSP</strong> Developer’s <strong>Guide</strong><br />

2. Modify the configuration parameters in host/resource/test/bspVal/mv147.T1.<br />

Parameters with the prefix T1_ must be set up appropriately for your<br />

environment and the mv147 <strong>BSP</strong>. (The T2_ parameters in mv147.T2 are for a<br />

second target and are not needed for the auxiliary clock test.) To match the<br />

mv147 <strong>BSP</strong>, set the auxiliary clock speed as follows:<br />

T1_EXTRA_AUXCLK=4321 ;<br />

export T1_EXTRA_AUXCLK<br />

3. Copy pkLib.c from target/src/test/bspVal to the VxWorks target directory<br />

(target/config/mv147 in this example), and use the VxWorks Makefile to make<br />

pkLib.o. The pkLib.o object file is loaded on to the target during the test. Note<br />

that the <strong>BSP</strong> VTS script handles these steps automatically if it does not find a<br />

pkLib.o in the bspname directory.<br />

4. Check that the mv147 target is connected to the appropriate serial port of the<br />

host, connected to the network, and turned on.<br />

5. Execute bspVal on the host, specifying the auxClock test on the command<br />

line. The running time of this test is approximately seven minutes.<br />

% bspVal tgtSvr -b mv147 auxClock<br />

The screen display is:<br />

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

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

Target server<br />

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

Log file<br />

: tgtSvr<br />

: mv1604<br />

: /tmp/bspValidationLog.19938<br />

Auxiliary Clock Test :<br />

auxClk at 4321 hertz (rate = 4327 error = 0%)<br />

auxClk at 40 hertz (rate = 40 error = 0%)<br />

auxClk at 5000 hertz (rate = 5001 error = 0%)<br />

auxClk at 60 hertz (rate = 60 error = 0%)<br />

sysAuxClkDisable() disables auxClk<br />

sysAuxClkRateSet() parameter checking<br />

sysAuxClkRateGet() return value<br />

: PASS<br />

: PASS<br />

: PASS<br />

: PASS<br />

: PASS<br />

: PASS<br />

: PASS<br />

Tests RUN 7<br />

Tests PASSED 7<br />

Tests FAILED 0<br />

Tests SKIPPED 0<br />

156

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

Saved successfully!

Ooh no, something went wrong!