阅读:1043回复:2
高分请教 Usb: Board did not accept configuration URB 问题!!!
我编译了一驱动程序,当跟踪时出现以下错误信息:
5843.938 Default Usb: Board did not accept configuration URB 我的这部分原代码是: ... NTSTATUS UsbDevice::OnStartDevice(KIrp I) { t << "Entering UsbDevice::OnStartDevice/n"; NTSTATUS status = STATUS_UNSUCCESSFUL; AC_STATUS acStatus = AC_SUCCESS; I.Information() = 0; status = m_Lower.Preconfigure(); if(status==STATUS_SUCCESS) t << "Get USB Configuration OK/n"; acStatus = m_Lower.ActivateConfiguration(1 // ConfigurationValue 1 (the first configuration) ); switch (acStatus) { case AC_SUCCESS: t << "USB Configuration OK/n"; status = STATUS_SUCCESS; break; case AC_COULD_NOT_LOCATE_INTERFACE: t << "Could not locate interface/n"; break; case AC_COULD_NOT_PRECONFIGURE_INTERFACE: t << "Could not get configuration descriptor/n"; break; case AC_CONFIGURATION_REQUEST_FAILED: t << "Board did not accept configuration URB/n"; break; case AC_FAILED_TO_INITIALIZE_INTERFACE_OBJECT: t << "Failed to initialize interface object/n"; break; case AC_FAILED_TO_GET_DESCRIPTOR: t << "Failed to get device descriptor/n"; break; case AC_FAILED_TO_OPEN_PIPE_OBJECT: //NOTE: this may not be an error. It could mean that //the device has an endpoint for which a KUsbPipe object has //not been instanced. If the intention is to not use this endpoint, //then it's likely not a problem. status = STATUS_SUCCESS; t << "Failed to open pipe object/n"; break; default: t << "Unexpected error activating USB configuration/n"; break; } 请问究竟错误在什么地方,该如何解决呢?谢谢各位了。 (上面switch循环是自动生成的,应该没有问题) |
|
|
沙发#
发布于:2005-01-10 09:07
自己顶
|
|
|
板凳#
发布于:2005-01-11 09:06
怎么没有人回复啊?再顶
|
|
|