none
USBSer.dll doesn't load in a release build (CE8) RRS feed

  • Question

  • Hello, i'm working with usbser.dll on CE8

    Opening the nk.bin from a release image shows me the driver is included in the registry. (The same goes for debug build)

    Only when a CDC device is plugged in, a dialog box appears asking me to install the correct driver. (In a debug build USBSER.dll gets loaded, without a dialog box appearing)  In a release build, GetLatestError() returns me 126 : "The specified module could not be found."  Strange since the file  "C:\WINCE800\OSDesigns\Ensor8\Ensor8\RelDir\PgxEtx_x86_Release\USBSER.dll"  does exists.

    My registery information:

    ; USB SpectroPhotoMeter driver
    IF BSP_USB_SPM_PGX
    	#include "$(PLATFORM_DRIVERS_DIR)\usb\class\usbspm\usbspm.reg"
    
    
    ;CDC information for ILS15 sensors
    [HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\1893_53344\Default\Default\USBSER_CLASS]
       "Prefix"="COM"
       "Dll"="USBSer.DLL"
    [HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\USBSER_CLASS]
       "Prefix"="COM"
       "Index"=dword:9
       "Dll"="USBSer.DLL"
       "DeviceArrayIndex"=dword:0
       "RxBufferSize"=dword:4000
       "IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"
    ENDIF

    Anyone that knows how to fix this error ? I've taken the same actions as a did with CE7.

    Regards Deckx Kevin,



    • Edited by Kevin Deckx Wednesday, October 23, 2013 11:45 AM
    Wednesday, October 23, 2013 11:41 AM

All replies

  • Right, 

    After manually copying usbser.dll into the \windows directory (release build) my device was recognized and did its job.

    I don't think this is normal behavior, so is this a bug or a (new) feature ? 


    A simple entry in platform.bib solves this issue.


    • Edited by Kevin Deckx Wednesday, October 23, 2013 12:06 PM
    Wednesday, October 23, 2013 12:06 PM
  • This is not the bug. you have to add the sysgen variable "set SYSGEN_USBSER=1" to your BSP bat file or in the envirnoment variable option.

    See the Common.bib and common.reg file "CE_MODULES_USBSER" entry. these files are available in public\common\oak\files dir


    Please mark as answer, if it is correct.
    Please vote,if it is helpful post.
    All the Best
    Vinoth.R
    www.e-consystems.com
    http://vinoth-vinothblog.blogspot.com


    • Edited by Vinoth[MCTS] Wednesday, October 23, 2013 12:18 PM
    Wednesday, October 23, 2013 12:17 PM
  • Then why was usbser.dll included in a debug image but not in a release image ?

    EDIT: aah, i assume CE did not found UsbSer.dll in \windows but went looking in the \release folder next...


    • Edited by Kevin Deckx Wednesday, October 23, 2013 1:33 PM
    Wednesday, October 23, 2013 1:07 PM
  • may be it is added in your platform.reg or your drivers registry. check it in the reginit.ini file in the release directory. you can find how the registry alone is included.

    Please mark as answer, if it is correct.
    Please vote,if it is helpful post.
    All the Best
    Vinoth.R
    www.e-consystems.com
    http://vinoth-vinothblog.blogspot.com

    Wednesday, October 23, 2013 1:36 PM
  • Your EDIT is correct.  You can confirm this the next time you run the debug build by checking the debug output, it will show where usbser.dll is loaded from.

    It looks like your BSP has the registry entries but not the bib entry.


    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG http://geekswithblogs.net/bruceeitman

    Eurotech Inc.
    www.Eurotech.com

    Wednesday, October 23, 2013 5:13 PM
    Moderator