Thursday, April 10, 2014

ERROR: Vender Requests Code Error 997 :/

Added this :

    gpioConfig.outValue = CyFalse;
    gpioConfig.driveLowEn = CyTrue;
    gpioConfig.driveHighEn = CyTrue;
    gpioConfig.inputEn = CyFalse;
    gpioConfig.intrMode = CY_U3P_GPIO_NO_INTR;
    apiRetStatus = CyU3PGpioSetSimpleConfig(45, &gpioConfig);







Reason: 

1.For vendor requests in control panel must be selected control endpoint, req. type. "vendor", target "device", req. code field must be filled with vendor request code.
In control panel error 997 is usually visible if is selected direction "out", is clicked transfer data button and is sent to FX3, but firmware does not read data from endpoint (using CyU3PUsbGetEP0Data; for zero length packets most likely should be called CyU3PUsbAckSetup). Or if is selected direction "in", clicked transfer data button, but firmware does not send data to endpoint (using CyU3PUsbSendEP0Data).
Tested using USB 2.0 and with above mentioned commands errors 997 are not displayed.
Regarding error 69 (decimal), I think that it means timeout.
2.The error code 997 refers I/O pending for the overlapped to http://msdn.microsoft.com/en-us/library/windows/desktop/ms681388(v=vs.85).aspx. PSoC3 has a full-speed USB. You're most probably sending a big transfer and clicking transfer again before the previous one completes.
Regards,

3. 

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.