locked
Custom USB function driver endpoint halt issue RRS feed

  • Question

  • I have been working on a custom USB function driver for a WINCE 6.0 device. I started the driver by cloning the sample serial driver. My driver has a control endpoint, a bulk in endpoint, and a bulk out endpoint. All of my transfers are working fine. In preparing for USB IF certification of the driver I ran the USB20CV tools CH 9 tests. Everything passes except for the Endpoint Halt test (9.9). Where in the sample driver should I be looking for this? Below is the log from the failed endpoint halt test:

    INFO
    Start time: Sat Mar 15 16:45:51 2014
    INFO
    Testing Interface number : 0x0 Alternate setting : 0x0
    INFO
    Testing EndPoint type : Bulk, Address : 0x1
    INFO
    Endpoint is currently not halted for endpoint 0x01
    INFO
    Setting feature endpoint halt for endpoint 0x01
    INFO
    Endpoint is halted for endpoint 0x01
    INFO
    Clearing feature endpoint halt for endpoint 0x01
    INFO
    Endpoint is no longer halted for endpoint 0x01
    INFO
    Testing EndPoint type : Bulk, Address : 0x82
    INFO
    Endpoint is currently not halted for endpoint 0x82
    INFO
    Setting feature endpoint halt for endpoint 0x82
    ERROR
    Endpoint could not be halted for endpoint 0x82
    INFO
    Clearing feature endpoint halt for endpoint 0x82
    INFO
    Endpoint is no longer halted for endpoint 0x82
    FAIL
    (1.2.91) A device that has Bulk/Interrupt endpoints must support the
     Halt Endpoint request on those endpoints.

     
    Monday, March 31, 2014 7:20 PM

All replies

  • I guess you need to look at the PDD Part of USB Function driver. May be the following functions are responsible for this UfnPdd_StallEndpoint, UfnPdd_ClearEndpointStall and UfnPdd_IsEndpointHalted

    I assume you wrote a USB Function Custom Client driver.

    Regards,

    GSR

    Monday, March 31, 2014 8:30 PM
  • You are correct. This is a USB Function Custom Client driver. The strange thing is that the BSP included some other Function Client drivers such as storage device and these drivers don't exhibit the same endpoint halt condition. I will look at those Pdd functions and see if anything jumps out at me.
    Monday, March 31, 2014 8:37 PM