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 />

Optional Product Test<br />

Item Date Status<br />

1. If the <strong>BSP</strong> has support for USB, test USB support for this <strong>BSP</strong>.<br />

To do this, follow the steps below, using the project facility to<br />

configure USB. For further information on USB, please see the<br />

USB documentation.<br />

Project Facility Configuration:<br />

- Select the USB host stack component.<br />

- Select at least one host controller, OHCI or UHCI depending on<br />

the <strong>BSP</strong> support.<br />

- Include either mouse or keyboard peripheral components if the<br />

hardware is available.<br />

NOTE: Do not include any initialization components.<br />

If you intend to use the target shell for testing, make sure a symbol<br />

table is available on the target.<br />

USB Testing:<br />

- Boot the target with USB support.<br />

- From either the target or the host shell, invoke the USB tool by<br />

calling the usbTool( ) command. This produces the usb tool<br />

prompt. Run the following commands from the usb tool prompt:<br />

usb> usbi (initialize stack)<br />

usb> attach ohci (or uhci depending on your configuration)<br />

This ensures that USB is configured properly on the target.<br />

If a keyboard or mouse USB peripheral is available, test them as<br />

follows:<br />

Mouse Testing:<br />

- Attach the mouse device at one of the ports.<br />

- Ensure that the device has been detected by enumerating the<br />

bus. Call the usbenum command from the usb tool.<br />

- Run the mouse test by calling the mousete command from the<br />

usb tool. The coordinates of the mouse should be displayed as<br />

the mouse is moved.<br />

Keyboard Testing:<br />

<strong>BSP</strong> Validation Checklist<br />

- Attach the keyboard device and initialize the keyboard by<br />

invoking kbdi from the usb tool.<br />

- Run the keyboard test by calling the kbdpo command from the<br />

usb tool. Keys pressed on the keyboard are displayed at the<br />

shell.<br />

406

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

Saved successfully!

Ooh no, something went wrong!