Driver Load Sequence



Hi, I need to dynamically load and un-load drivers from Platform Builder to
deal with a problem that i have explained below.

Can someone tell me how to do any of these two things:

1- Tell WinCE to load my ftdi_ser.dll (a third party dll for ftdi’s serial
over USB chip) after loading every other dll at boot time. (note platform.reg
"order" doenst work in this case).

2- Un-load and re-load the ftdi_ser.dll after completion of the boot up
either from the Platform Builder environment or programmatically.
The problem is that the ftdi-ser.dll driver behaves differently if WinCE is
started with the external ftdi device attached to the USB port:

Normal operation: If I boot up WinCE and then plug in a serial over usb
device into the WinCE device’s USB port, the external device is detected by
the OHCI.dll and its driver FTDI_SER.DLL gets loaded after Wince loads the
OHCI.dll and it then operates normally i.e. I can plug the device in and then
un-plug the device and re-plug and re-establish serial comms over the USB all
normally.

Abnormal operation:
If I boot up WinCE with the external USB device attached to the USB port
already, the FTDI_SER.DLL still gets loaded but USB doesn’t function also the
FTDI+_SER.DLL does not get un-loaded when I detach the external device from
the USB port.
There are also other symptoms, in the registry viewer i can see under
/Drivers/Builtin/Active that the FTDI_SER.DLL doesn’t get un-loaded and
re-enumerated as it is the case under Normal Operation.

As a solution, I must tell WinCE to load FTDI_SER.DLL after loading all
other dlls.
Or as a workaround I could get WinCE to un-load the FTDI_SER.dll after
loading all the dlls and then re-load it again.

Thanks and regards,
EZ

.



Relevant Pages

  • Re: Driver Load Sequence
    ... Yes i have changed the load order in platform.reg ... There are some other USB related modules which might ... > Have you tried changing the order of the USB Host driver so that it loads ... the Host driver loads the FTDI_SER.DLL at boot time. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: USB Serial communicate between WinCE(Box) <----> WindowsXP (PC
    ... Get rid of the intermediate hardware and the driver ... Chris Tacke - Embedded MVP ... to the USB driver. ... the WinCE device handle. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: I am trying To USB Function as Usb Host Client Driver, Is It O
    ... USB Serial device. ... Hence I wanted to use that driver for my USB to Serial Device (Host Client ... My BSP Supports both USB functioin and USB Host drivers.I am tring to load ... I need help on Registry settings. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Problem about USB host in CEPC under VMWare
    ... I'm developing a usb host client driver under WinCE 5.0. ... But when I plug the usb device in after CEPC booted, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: OTG module development for Mainstone II PXA270X - WinCE 5.0
    ... Well WinCe 5.0 does not contain MIII folder so that option of using ... ->Does OTG share the USB HCD and USB function controller driver. ... the USB OTG driver is availble with WinCE 6.o Mainstone II board. ...
    (microsoft.public.windowsce.platbuilder)