USBFN => data abort in Windows Embedded CE6.0



Hi, how are u?

Previously I made a question about 'Data Abort' in Usbfn pdd device
driver.
But, I tested several times with the other souce code, Sc2440pdd.cpp
file for WinEmbCE6.0.
This code already has been confirmed by the reference board made by
MDS technology which is one of embedded software company.

So, with this confirmed source code Sc2440pdd.cpp, I tried to adapt to
my WinEmbCE6.0 BSP project.
But error has happed like below.

error has been happened just after finishing calling UfnPdd_IOControl
function.
and the parameter of UfnPdd_IOControl is wired.
(with WinCE5.0 there is no calling this function with this parameter)

....
OEMInit: KITLIoctl end
VBridge:: VB_INITIALIZED returns [0]
[2846]UFNPDD : RegOpenKeyEx success 0, 1, Mass_Storage_Class, 38
[2849]UFNPDD : RegQueryValueEx success
[2863]UFNPDD : USB MSF Function Class Enabled : Mass_Storage_Class
[2972]UFNPDD : SC2440UsbFn!UfnPdd_Init: Using IO Base 50000000
[2974]UFNPDD : SC2440UsbFn!UfnPdd_Init: Using SysIntr 17
[2976]UFNPDD : SC2440UsbFn!UfnPdd_Init: Using IST priority 100
[1167]UsbFnMdd!UFN_Init: PDD has 5 endpoints
[1170]UsbFnMdd!UFN_Init: PDD supports speeds 0x1
[1489]00..
[2644]UFNPDD : ++UfnPdd_IOControl, dwCode = 2752584
[2716]UFNPDD : found !! dwCnt=9
[2717]UFNPDD : sSTATEs[dwCnt].strState=IOCTL_BUS_POSTINIT <- I added
to find out what code has been passed.
[2724]UFNPDD : --UfnPdd_IOControl
Exception 'Data Abort' (4): Thread-Id=00df0002(pth=87e30c98), Proc-
Id=00400002(pprc=81108308) 'NK.EXE', VM-active=015f0002(pprc=87
e06b70) 'udevice.exe'
PC=c0978d18(mv8760usbfn.dll+0x00008d18) RA=c0979d7c(mv8760usbfn.dll
+0x00009d7c) SP=d03ce2d8, BVA=00000000
[1498]EXCEPTION_EXECUTE_HANDLER..
[1527]Error !! -> GetLastError() = 0x57, fRet = 0

Recently, I really made lots of questions at this place.
Because I think you are very good at WinCE over the world.
Thanx for your help in advance.
.



Relevant Pages

  • Re: USBFN device driver => data abort in Windows Embedded CE6.0
    ... Bruce.Eitman AT EuroTech DOT com ... I tested several times with the other souce code, ... So, with this confirmed source code Sc2440pdd.cpp, I tried to adapt to ... error has been happened just after finishing calling UfnPdd_IOControl ...
    (microsoft.public.windowsce.embedded)
  • Re: How to call function from driver in inline assembler
    ... It seems that in calling by this way must be prepared ebx register? ... Or not possible to call other functions than are part of calling driver? ... Yes I agree with you that using inline _asm is not very effective ... push 0x48c ...
    (microsoft.public.development.device.drivers)
  • Interpreting ERROR!!! Calling xxx_SetProcPermissions in Wince 6.0 with platman cepermon tool
    ... viewed by all clients - display drivers, dshow filters, etc. ... To implement this, I wrapped the hardware libraries in a device driver, ... Calling xxx_SetProcPermissions ...
    (microsoft.public.windowsce.platbuilder)
  • Re: [PATCH] call drv->shutdown at rmmod
    ... Patrick Mochel writes: ... >> device shutdown method at module remove time, in addition to calling ... > could also be extended to include a power state, ... Assuming the device driver can get a device out of the suspend state ...
    (Linux-Kernel)
  • Re: bugcheck during unload
    ... The bugcheck parameters (and by the ... >>>>why ndisHandleProtocolUnbindNotification is calling ... >>>I came across a minidump for a crash in my NDIS IM driver. ...
    (microsoft.public.development.device.drivers)