Re: USB MDD Debug Messages
- From: strange-corner <strangecorner@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 6 Aug 2009 07:51:01 -0700
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
- Follow-Ups:
- Re: USB MDD Debug Messages
- From: ce_developer
- Re: USB MDD Debug Messages
- References:
- USB MDD Debug Messages
- From: strange-corner
- Re: USB MDD Debug Messages
- From: ce_developer
- Re: USB MDD Debug Messages
- From: strange-corner
- Re: USB MDD Debug Messages
- From: ce_developer
- Re: USB MDD Debug Messages
- From: Dean Ramsier
- USB MDD Debug Messages
- Prev by Date: Re: Sharing serial IRQ on the ISA bus
- Next by Date: Re: Sharing serial IRQ on the ISA bus
- Previous by thread: Re: USB MDD Debug Messages
- Next by thread: Re: USB MDD Debug Messages
- Index(es):
Relevant Pages
|