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.

VxWorks 5.5<br />

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

The fourth test performs parameter checking of sysNvRamSet( ). This test checks that the<br />

proper return value is given for erroneous input parameters. If this test fails, check that<br />

error checking is provided by sysNvRamSet( ), which should return ERROR for a<br />

negative offset or a length parameter. Also, the value of the offset plus length parameters<br />

must be less than NV_RAM_SIZE.<br />

The fifth test performs parameter checking of sysNvRamGet( ). This test checks that the<br />

proper return value is given for erroneous input parameters. If this test fails, check that<br />

error checking is provided by sysNvRamGet( ), which should return ERROR for a<br />

negative offset or length parameter. Also, the value of the offset plus length parameters<br />

must be less than NV_RAM_SIZE.<br />

The sixth test writes several bytes of data (0xff), then reads back from the same NVRAM<br />

location. This operation checks that the same data is read back, and that the buffer is<br />

returned with a NULL termination. If this test fails, check that writing 0xff to NVRAM<br />

does not cause a problem and that the passed-in buffer is properly terminated with EOS.<br />

The seventh test writes several bytes of data (0x00), then reads back from the same<br />

NVRAM location. This operation checks that the same data is read back, and that the<br />

buffer is returned with a NULL termination. If this test fails, check that writing 0x00 to<br />

NVRAM does not cause a problem and that the passed-in buffer is properly terminated<br />

with EOS.<br />

The eighth test returns NV_RAM_SIZE bytes of NVRAM back to the values read in the<br />

first test. If this test fails, check that NV_RAM_SIZE bytes of NVRAM can be written and<br />

read with sysNvRamSet( ) and sysNvRamGet( ).<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.<br />

CONFIGURATION PARAMETERS<br />

None.<br />

EXAMPLE<br />

Output consists of:<br />

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

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

Target server : t53-160<br />

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

: mv147<br />

Log file<br />

: /tmp/bspValidationLog.5219<br />

Non-Volatile RAM Test :<br />

sysNvRamGet() of boot line<br />

: PASS<br />

sysNvRamSet() and sysNvRamGet() of complemented bootline : PASS<br />

sysNvRamGet() with length zero<br />

: PASS<br />

sysNvRamSet() parameter checking<br />

: PASS<br />

sysNvRamGet() parameter checking<br />

: PASS<br />

sysNvRamSet() and sysNvRamGet() of 0xff data<br />

: PASS<br />

sysNvRamSet() and sysNvRamGet() of 0x00 data<br />

: PASS<br />

388

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

Saved successfully!

Ooh no, something went wrong!