Re: USB MDD Debug Messages

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




Thank you very much for your answers. Debugging and debug output does still
not work, but at least I found the error that caused the
ERROR_INVALID_PARAMETER. It was a wrong length calculation in the descriptor.
So for the moment I'm ok, but anyway, here my answers to your posts...

@ce_developer: I tried to compile UFNMDDBASE as dll but was not able to do
so. The message was "NMAKE: don't know how to make 'UFNMDDBASE.def'".

@Dean Ramsier: 1. Yes. 2. I think it should.
Actually, it is the ufnprn driver that comes with the platform builder. I
copied and renamed those two files into a dll-subproject and changed some
lines. If it does not link to the usbfnmdd in the public tree, what else does
it link to?

Best Regards,
strange-corner

"Dean Ramsier" wrote:

Some things aren't quite clear:

1) Is MyDriver.dll your usb function controller driver?
2) If so, does it link to the USBFNMDD that is in the public tree?

It sounds like the problem is you're creating a USB FN driver, but not using
the code that you think you are. Try posting the sources file for your
USBFN controller driver.

--
Dean Ramsier - eMVP
BSQUARE Corporation


"ce_developer" <ce.developer@xxxxxxxxx> wrote in message
news:b0f89c9e-f884-47e7-8ea1-94f505d46cf7@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Aug 5, 3:21 am, strange-corner
<strangecor...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
"ce_developer" wrote:
On Aug 4, 9:04 am, strange-corner
<strangecor...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,
I'm trying to write a USB function controller driver for CE 6.0.
The call of UfnMdd_RegisterDevice(...) (in rfnmdd.cpp) always fails
with
ERROR_INVALID_PARAMETER.
I think it would help me if i could see the debug messages of that MDD
module. So I have set the dpCurSettings.ulZoneMask of myDriver.dll.
But there
are no messages from the usb mdd. Do I have to set the debug zone of
another
module?

I was also not able to debug the code in ufnmdd.cpp. How can we do
that?

If you want the debug message from MDD get printed then you will have
to define the zone mask for that particular MDD module other than your
module i.e myDriver.dll whatever it may be.

Look for that in the MDD usb module and turn ON all the Debug zones
that you want to be printed. Make sure to check the sources file of
that MDD module and you will need to compile that MDD module and then
your driver dll to get the dependency in.

Good Luck,
ce.developer

Thanks for your reply. The proplem is, I cannot find the right module to
set
the debug zones. In the mdd configuration, it says: "Target Name =
UFNMDDBASE", but there is no ufnmdbase.dll.
I also tried to hardcode dpCurSettings.ulZoneMask = 0x7FFF into
ufnmdd.cpp.
There is still no output.

Compiling of MDD works fine. But I cannot debug the functions of that
module. The debugger will step over the ufnmdd.cpp functions. Although I
compiled with the debug-configuration.- Hide quoted text -

- Show quoted text -

I am presuming you have set the debug zone masks in usbfn.h and if you
see the sources file it is generating the Library instead of Dll.. I
am seeing targettype as LIBRARY.
Now that if you want to debug that module u need to change the
targettype as DLL instead of Library and you have to follow the steps
as mentioned :

1. Change the target type to DLL in the sources file.
2. set COMPILE_DEBUG = 1.
3. Do build -c for that module.
4. Finally do sysgen UFNMDDBASE.

I hope this should work for you.
This is only for debugging purpose you not supposed to change any
public code supplied by MSFT.

Good Luck.
ce.developer



.



Relevant Pages

  • Re: Compiling the Public Folder in WM6.1
    ... That CDEFINE won't make it compile for debug. ... if this driver is in PUBLIC code you should not modify the sources file. ... Just copy the debug version of the DLL into your _FLATRELEASEDIR and download the kernel. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Compiling the Public Folder in WM6.1
    ... your sources file or copy the compiled dll/pdb/rel from the debug folder ... sources file. ... I just want to put some debug macros in one of the PUBLIC folder so ... The time stamp of the lib says it is going into the retail directory. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Compiling the Public Folder in WM6.1
    ... Open a *debug* build window and build the debug version of the driver. ... sources file. ... I just want to put some debug macros in one of the PUBLIC folder so ...
    (microsoft.public.windowsce.platbuilder)
  • Re: USB MDD Debug Messages
    ... I'm trying to write a USB function controller driver for CE 6.0. ... I think it would help me if i could see the debug messages of that MDD ... Look for that in the MDD usb module and turn ON all the Debug zones ...
    (microsoft.public.windowsce.platbuilder)
  • Re: [PATCH 07/10] ehci-dbgp,ehci: Allow early or late use of the dbgp device
    ... controller driver must follow two rules. ... The EHCI host driver should ignore any requests to the physical ... EHCI debug port when the EHCI debug port is in use. ...
    (Linux-Kernel)