diff -r 578be2adaf3e -r 307f4279f433 Adaptation/GUID-092F414B-2279-4ADB-970F-75DAB8A80BD7.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Adaptation/GUID-092F414B-2279-4ADB-970F-75DAB8A80BD7.dita Fri Oct 15 14:32:18 2010 +0100 @@ -0,0 +1,68 @@ + + + + + +SDIO Testing GuideHow to run unit tests of the SDIO platform-specific layer. +

Before +running this test, you must do the following:

    +
  • Port the SDIO Controller for your platform (see SDIO Implementation +Guide)

  • +
  • Build the test ROM.

  • +
  • Boot the device with the test ROM.

  • +

+

After +you have ported the SDIO Controller on your platform, you can test +it using the provided unit test application, SDIOTest.

The +test application runs in a text shell and is made of two parts:

    +
  • The test program, sdiotest.exe tests the +Controller in isolation, at the interface level.

  • +
  • The test driver, d_sdioif.ldd uses the SDIO API, which is a kernel-side interface.

  • +

The source code of the test application is in /e32utils/sdio/source/.

You must build d_sdioif.ldd for the appropriate platform and sdiotest.exe for the appropriate CPU architecture.

To include the two test components in a ROM, specify the sdiotests.iby file in your command line when building +the image, such as in the following example:rom.bat -v h4hrp -i armv5 --symbol –t sdiotests.iby -m USE_SDIO_SD_MMC

The SDIOTest utility is not an automated test: it performs +various unitary operations which can be used to validate the behavior +of the SDIO Controller. First, you request an operation by pressing +the corresponding key on the command line. Then, you compare the resulting +display with the data expected from the card.

The following +steps provide an example of how to test your port.

+ +Run the +SDIOTest application. + +Power up +the stack by pressing the P key. +

The stack must report that no card is present.

+
+Insert a +card and power it up. +

The stack must report that a card is present.

+
+Read the +card information by pressing the I key. +

The data returned by the stack must match the data +sheet you have for the card.

+
+Read the +common control registers by pressing the R key. +

The values must match the expected card data.

+
+Read the +common configuration by pressing the C key. +

The values must match the expected card data.

+
+Read information +about the I/O function by pressing the F key. +

The data returned by the stack must match the I/O specifications +of the card.

+
+Quit the +test by pressing the Q key. + +
+
\ No newline at end of file