Re: Memory allocation failed of USB HOST driver

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



CPhysMem manages a pool of memory for use within the USB Host driver.
Allocations from that pool can fail if there simply isn't enough memory to
allocate or if it is fragmented. You can set the amount of memory available
by changing the amount requested in calls to it's constructor.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member


"Walzer" <JoeyWalzer@xxxxxxxxxxx> wrote in message
news:O6dVPmssFHA.2880@xxxxxxxxxxxxxxxxxxxxxxx
Hi, all
In Wince5.0, i use OHCI usb host and the driver is running well. But
today i met a problem.
When I plug in two CBIT usb disk to my platform trough a extrenal hub,
the seceond pluged one will be failed when opening pipe for it's second bulk
pipe.

0x83e5d400: +USBD:OpenPipe, EP: 0x81, MaxPkt: 64, Type: Bulk
0x83e5d400: -USBD:OpenPipe success, hPipe = 5D6F0
0x83e5d400: +USBD:OpenPipe, EP: 0x2, MaxPkt: 64, Type: Bulk
0x83e5d400: CPhysMem AllocateMemory : No memory available
0x83e5d400: TDQueue::TDQueue - no memory for TD list
0x83e5d400: -CBulkPipe::OpenPipe - no memory for TD
0x83e5d400: !USBD:OpenPipe returning error
0x83e5d400: OpenPipe error:0
0x83e5d400: USBMSC.DLL: Code Coverage Trap in:
d:\source_code\wince500\platform\ibmce\src\drivers\hcd\class\storage\class\src\usbmsc.c,
Line: 758

Then I test for more device onto the external hub, and found this rule:
(1) BOT disk + BOT disk, OK
(2) BOT disk + CBIT disk, OK
(3) BOT + BOT + usb mouse, OK
(4) BOT + BOT + MOUSE + keyboard, the keyboard will failed, no memory
avialable
(5) BOT + CBIT + MOUSE, the mouse failed.
(6) CBIT + CBIT, the second CBIT faild at the second bulk pipe.

Is anyone who have experence on this problem?


.



Relevant Pages

  • Re: Recommendation on USB hub IC for USB memory stick
    ... "Ron" skrev i meddelandet ... > The port would only use a memory stick, no HID devices, etc. ... that runs the USB host stack. ... It has OTG functinality as well, but then you need a small ...
    (comp.arch.embedded)
  • Re: Best low cost uP for full Linux
    ... The USB host, ... memory, etc requirements say to me "just buy a tiny form factor PC" ... Some of the smartphone chips would probably do everything but the ...
    (comp.arch.embedded)