Delen via


Secure Digital Test (LOGO)

This test is designed to test Secure Digital (SD) host controllers. This test loads a test driver, sdhct.sys, that enables it to access the SD host controller hardware directly.

Test details

Associated requirements

Device.BusController.SdioController.ComplyWithIndustrySpec Device.BusController.SdioController.WdfKmdfDriver

See the device hardware requirements.

Platforms

Windows 7 (x64) Windows 7 (x86) Windows Server 2008 R2 (x64) Windows Server 2008 x64 Windows Server 2008 x86

Expected run time

~5 minutes

Categories

Certification Functional

Type

Manual

 

Running the test

Before you run the test, complete the test setup as described in the test requirements: Secure Digital Host Controller Testing Prerequisites.

Be sure to use high speed media if your host controller supports high speed. You should use the best quality media available to ensure accurate results.

The test has several manual steps that require you to insert and remove the SD card from the controller at various stages of the test in order to accurately validate all the necessary conditions. The instructions in the command window for the test are very explicit and will explain what steps are needed to be taken in order to accurately test the device.

To run this test:

  1. Begin the test.

  2. Allow the machine 5 minutes to load the test driver and restart.

  3. Go to the test machine and follow the on-screen instructions to insert and remove the SD card.

Warning  

To run the test manually, you must manually insert and remove SD cards. This activity will occur after the test has restarted the machine the first time.

 

Troubleshooting

For troubleshooting information, see Troubleshooting Bus Controller Testing.

If you insert and remove the SD card in the wrong order as specified by the output of the command window, the test may fail as it expects the card to be in certain configurations. If this occurs, reschedule the test and retry while following the steps closely.

In some cases the SDHCT.sys driver has bug checked during testing, this can occur for various reasons, but is usually mitigated by running the test a couple of times.

Failures in the test have more information about what occurred and what was being tested in the resulting logs. These are available for analysis and should be looked at first when a failure is encountered.

More information

The SD Bus Host Controller software enables you to verify the correct operation of an SD controller on a Windows platform that has a logo. Correct operation includes exercising and verifying the following functionality:

  • Device.BusController.SdioController.ComplyWithIndustrySpec

  • Device Insertion/Removal

  • Wake on Device Insertion/Removal

  • SD Memory I/O

  • SD Performance

  • Host Controller Power Control

  • Error Handling

The test interacts with the test driver to validate each of these areas. For several of the cases, the user will be required to insert and remove the SD card in response to the prompt in the command window. The test will print clearly in the log which test case is being tested and what the results are for that result. This helps to analyze what is being tested and any failures encountered.

Command usage

Command Description

sdhct.exe

Run all the test cases for all the slots of the host controller.

 

Command syntax

Command option Description

sdhct.exe

The command-line options for the test are listed below.

/s#

The SDHC slot number.

Default value: All slots

/t#

The test group to run.

Default value: All test groups

You can specify the following values:

  • t1: PCI/host controller configuration tests

  • t2: SD device insert/remove detection tests

  • t3: SD memory I/O tests

  • t4: SD performance tests

  • t5: SD error handling tests

 

File list

File Location

sdcht.dll

<[testbinroot]>\nttest\driverstest\storage\wdk\sdhct\

sdhct.exe

<[testbinroot]>\nttest\driverstest\storage\wdk\sdhct\

sdhct.sys

<[testbinroot]>\nttest\driverstest\storage\wdk\sdhct\

sdhct.inf

<[testbinroot]>\nttest\driverstest\storage\wdk\sdhct\

sdhct.cat

<[testbinroot]>\nttest\driverstest\storage\wdk\sdhct\

devcon.exe

<[osbinroot]>\IDW\

 

 

 

Send comments about this topic to Microsoft