Dear all
I do some test about SD driver.
I insert SD card and can see SDMMC directory in the root.
Then I unplug and plug SD card fast asap and do a continuous repeat(unplug
and plug) about 10 times.
The SD card is inserted in the device, but cant see SDMMC directory.I check
the log, SD bus driver has loaded SDMemory.dll and process "SMC_Init(DWORD
dwContext)" successful.But I cannt see the SDMMC directory.
Can someone help how to solve or where to check it?

BRs
Jack

Re: Wince5.0: Cannt see SDMMC directory.? by Joel

Joel
Tue Jun 17 01:02:50 PDT 2008

I take it you are using interrupts for detecting card present?

If so you should consider debouncing the card present interrupt. Via
software or hardware.


Joel


On Jun 16, 11:08=A0pm, Jack.S <Ja...@discussions.microsoft.com> wrote:
> Dear all
> I do some test about SD driver.
> I insert SD card and can see SDMMC directory in the root.
> Then I unplug and plug SD card fast asap and do a =A0continuous repeat(unp=
lug
> and plug) =A0about 10 times.
> The SD card is inserted in the device, but cant see SDMMC directory.I chec=
k
> the log, SD bus driver has loaded SDMemory.dll and process "SMC_Init(DWORD=

> dwContext)" successful.But I cannt see the SDMMC directory.
> Can someone help how to solve =A0or where to check it?
>
> BRs
> Jack


Re: Wince5.0: Cannt see SDMMC directory.? by JackS

JackS
Tue Jun 17 01:27:01 PDT 2008

Thanks for your replay.But I have consider debouncing the card present
interrupt. Via software and hardware.
It is when card insert/remove ,there is a interrupt.
And if interrupt is happening ,My ISR will receive a event ,and will take a
few seconds(about 1.5 s) for debouncing the card present interrupt.
But "Cannt see SDMMC directory" still happen..


"Joel Winarske" wrote:

> I take it you are using interrupts for detecting card present?
>
> If so you should consider debouncing the card present interrupt. Via
> software or hardware.
>
>
> Joel
>
>
> On Jun 16, 11:08 pm, Jack.S <Ja...@discussions.microsoft.com> wrote:
> > Dear all
> > I do some test about SD driver.
> > I insert SD card and can see SDMMC directory in the root.
> > Then I unplug and plug SD card fast asap and do a continuous repeat(unplug
> > and plug) about 10 times.
> > The SD card is inserted in the device, but cant see SDMMC directory.I check
> > the log, SD bus driver has loaded SDMemory.dll and process "SMC_Init(DWORD
> > dwContext)" successful.But I cannt see the SDMMC directory.
> > Can someone help how to solve or where to check it?
> >
> > BRs
> > Jack
>
>

Re: Wince5.0: Cannt see SDMMC directory.? by Joel

Joel
Tue Jun 17 11:06:50 PDT 2008

Add printing a short string in the interrupt code (not the IST) for
insert, and one for remove. Then repeat your insert remove test. You
should see the string(s) match your insert/remove sequence without
being jumbled. If things look jumbled you need to work on your
debouncing code.


Joel


On Jun 17, 1:27=A0am, Jack.S <Ja...@discussions.microsoft.com> wrote:
> Thanks for your replay.But I have consider =A0debouncing the card present
> interrupt. =A0Via software and hardware.
> It is when card insert/remove ,there is a interrupt.
> And if interrupt is happening ,My ISR will receive a event ,and will take =
a
> few seconds(about 1.5 s) for debouncing the card present interrupt.
> But "Cannt see SDMMC directory" still happen..
>
>
>
> "Joel Winarske" wrote:
> > I take it you are using interrupts for detecting card present?
>
> > If so you should consider debouncing the card present interrupt. =A0Via
> > software or hardware.
>
> > Joel
>
> > On Jun 16, 11:08 pm, Jack.S <Ja...@discussions.microsoft.com> wrote:
> > > Dear all
> > > I do some test about SD driver.
> > > I insert SD card and can see SDMMC directory in the root.
> > > Then I unplug and plug SD card fast asap and do a =A0continuous repeat=
(unplug
> > > and plug) =A0about 10 times.
> > > The SD card is inserted in the device, but cant see SDMMC directory.I =
check
> > > the log, SD bus driver has loaded SDMemory.dll and process "SMC_Init(D=
WORD
> > > dwContext)" successful.But I cannt see the SDMMC directory.
> > > Can someone help how to solve =A0or where to check it?
>
> > > BRs
> > > Jack- Hide quoted text -
>
> - Show quoted text -


Re: Wince5.0: Cannt see SDMMC directory.? by JackS

JackS
Wed Jun 18 04:22:00 PDT 2008

Hi
I have found some things. When the condition happened, I use regEdit.exe to
check registry content. In the Hkey_Local_Machine\Drivers\Active\... , I can
find a index that include the
KEY:\Driver\SDCARD\ClientDrivers\Class\SDMemory....
I think that mean the SD client driver was load successful. Is it right?
If it is, why the SDMMC directory was not shown in the root?
( I only insert SD card in the Device repeat and fast about 10 times)

BR
Jack

"Joel Winarske" wrote:

> Add printing a short string in the interrupt code (not the IST) for
> insert, and one for remove. Then repeat your insert remove test. You
> should see the string(s) match your insert/remove sequence without
> being jumbled. If things look jumbled you need to work on your
> debouncing code.
>
>
> Joel
>
>
> On Jun 17, 1:27 am, Jack.S <Ja...@discussions.microsoft.com> wrote:
> > Thanks for your replay.But I have consider debouncing the card present
> > interrupt. Via software and hardware.
> > It is when card insert/remove ,there is a interrupt.
> > And if interrupt is happening ,My ISR will receive a event ,and will take a
> > few seconds(about 1.5 s) for debouncing the card present interrupt.
> > But "Cannt see SDMMC directory" still happen..
> >
> >
> >
> > "Joel Winarske" wrote:
> > > I take it you are using interrupts for detecting card present?
> >
> > > If so you should consider debouncing the card present interrupt. Via
> > > software or hardware.
> >
> > > Joel
> >
> > > On Jun 16, 11:08 pm, Jack.S <Ja...@discussions.microsoft.com> wrote:
> > > > Dear all
> > > > I do some test about SD driver.
> > > > I insert SD card and can see SDMMC directory in the root.
> > > > Then I unplug and plug SD card fast asap and do a continuous repeat(unplug
> > > > and plug) about 10 times.
> > > > The SD card is inserted in the device, but cant see SDMMC directory.I check
> > > > the log, SD bus driver has loaded SDMemory.dll and process "SMC_Init(DWORD
> > > > dwContext)" successful.But I cannt see the SDMMC directory.
> > > > Can someone help how to solve or where to check it?
> >
> > > > BRs
> > > > Jack- Hide quoted text -
> >
> > - Show quoted text -
>
>

Re: Wince5.0: Cannt see SDMMC directory.? by vishal

vishal
Thu Jun 19 03:20:09 PDT 2008

Hi Jack ,
Try to enable all debug zones for sdmemory.dll using
target ->debugzones or pegasus registry entries and check the debug
messages . i guess i might be failing because of incorrect results
sent by your Host controller driver for Master Boot Record read
request sent by sdmemory.dll.




On Jun 18, 4:22=A0pm, Jack.S <Ja...@discussions.microsoft.com> wrote:
> Hi
> I have found some things. When the condition happened, I use regEdit.exe =
to
> check registry content. In the Hkey_Local_Machine\Drivers\Active\... =A0,=
I can
> find a index that include the
> KEY:\Driver\SDCARD\ClientDrivers\Class\SDMemory....
> I think that mean the SD client driver was load successful. Is it right?
> If it is, why the SDMMC directory was not shown in the root?
> ( I only insert SD card in the Device repeat and fast about 10 times)
>
> BR
> Jack
>
>
>
> "Joel Winarske" wrote:
> > Add printing a short string in the interrupt code (not the IST) for
> > insert, and one for remove. =A0Then repeat your insert remove test. =A0=
You
> > should see the string(s) match your insert/remove sequence without
> > being jumbled. =A0If things look jumbled you need to work on your
> > debouncing code.
>
> > Joel
>
> > On Jun 17, 1:27 am, Jack.S <Ja...@discussions.microsoft.com> wrote:
> > > Thanks for your replay.But I have consider =A0debouncing the card pre=
sent
> > > interrupt. =A0Via software and hardware.
> > > It is when card insert/remove ,there is a interrupt.
> > > And if interrupt is happening ,My ISR will receive a event ,and will =
take a
> > > few seconds(about 1.5 s) for debouncing the card present interrupt.
> > > But "Cannt see SDMMC directory" still happen..
>
> > > "Joel Winarske" wrote:
> > > > I take it you are using interrupts for detecting card present?
>
> > > > If so you should consider debouncing the card present interrupt. =
=A0Via
> > > > software or hardware.
>
> > > > Joel
>
> > > > On Jun 16, 11:08 pm, Jack.S <Ja...@discussions.microsoft.com> wrote=
:
> > > > > Dear all
> > > > > I do some test about SD driver.
> > > > > I insert SD card and can see SDMMC directory in the root.
> > > > > Then I unplug and plug SD card fast asap and do a =A0continuous r=
epeat(unplug
> > > > > and plug) =A0about 10 times.
> > > > > The SD card is inserted in the device, but cant see SDMMC directo=
ry.I check
> > > > > the log, SD bus driver has loaded SDMemory.dll and process "SMC_I=
nit(DWORD
> > > > > dwContext)" successful.But I cannt see the SDMMC directory.
> > > > > Can someone help how to solve =A0or where to check it?
>
> > > > > BRs
> > > > > Jack- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


Re: Wince5.0: Cannt see SDMMC directory.? by JackS

JackS
Thu Jun 19 03:37:00 PDT 2008

Hi,
Thanks for your help.
I have found another thing.When that happened, if I enable the function of
SD to mass storage , I can see the "removal device" in the PC side, and then
I disable the function, the "SDMMC" directory was shown in the root of
Wince.
So what is the problem? where should I check it in the codes?

BRs
Jack


"vishal.g.shah@gmail.com" wrote:

> Hi Jack ,
> Try to enable all debug zones for sdmemory.dll using
> target ->debugzones or pegasus registry entries and check the debug
> messages . i guess i might be failing because of incorrect results
> sent by your Host controller driver for Master Boot Record read
> request sent by sdmemory.dll.
>
>
>
>
> On Jun 18, 4:22 pm, Jack.S <Ja...@discussions.microsoft.com> wrote:
> > Hi
> > I have found some things. When the condition happened, I use regEdit.exe to
> > check registry content. In the Hkey_Local_Machine\Drivers\Active\... , I can
> > find a index that include the
> > KEY:\Driver\SDCARD\ClientDrivers\Class\SDMemory....
> > I think that mean the SD client driver was load successful. Is it right?
> > If it is, why the SDMMC directory was not shown in the root?
> > ( I only insert SD card in the Device repeat and fast about 10 times)
> >
> > BR
> > Jack
> >
> >
> >
> > "Joel Winarske" wrote:
> > > Add printing a short string in the interrupt code (not the IST) for
> > > insert, and one for remove. Then repeat your insert remove test. You
> > > should see the string(s) match your insert/remove sequence without
> > > being jumbled. If things look jumbled you need to work on your
> > > debouncing code.
> >
> > > Joel
> >
> > > On Jun 17, 1:27 am, Jack.S <Ja...@discussions.microsoft.com> wrote:
> > > > Thanks for your replay.But I have consider debouncing the card present
> > > > interrupt. Via software and hardware.
> > > > It is when card insert/remove ,there is a interrupt.
> > > > And if interrupt is happening ,My ISR will receive a event ,and will take a
> > > > few seconds(about 1.5 s) for debouncing the card present interrupt.
> > > > But "Cannt see SDMMC directory" still happen..
> >
> > > > "Joel Winarske" wrote:
> > > > > I take it you are using interrupts for detecting card present?
> >
> > > > > If so you should consider debouncing the card present interrupt. Via
> > > > > software or hardware.
> >
> > > > > Joel
> >
> > > > > On Jun 16, 11:08 pm, Jack.S <Ja...@discussions.microsoft.com> wrote:
> > > > > > Dear all
> > > > > > I do some test about SD driver.
> > > > > > I insert SD card and can see SDMMC directory in the root.
> > > > > > Then I unplug and plug SD card fast asap and do a continuous repeat(unplug
> > > > > > and plug) about 10 times.
> > > > > > The SD card is inserted in the device, but cant see SDMMC directory.I check
> > > > > > the log, SD bus driver has loaded SDMemory.dll and process "SMC_Init(DWORD
> > > > > > dwContext)" successful.But I cannt see the SDMMC directory.
> > > > > > Can someone help how to solve or where to check it?
> >
> > > > > > BRs
> > > > > > Jack- Hide quoted text -
> >
> > > > - Show quoted text -- Hide quoted text -
> >
> > - Show quoted text -
>
>

Re: Wince5.0: Cannt see SDMMC directory.? by Erwin

Erwin
Thu Jun 19 12:00:14 PDT 2008

Jack be more specific:

> I have found another thing.When that happened, if I enable the function of
> SD to mass storage , I can see the "removal device" in the PC side, and
> then
> I disable the function, the "SDMMC" directory was shown in the root of

When what happend? what functions? Do as vishal suggested an enable debug
zones and show us the error (if there are any), otherwise we will keep on
guessing.

Good Luck

Erwin Zwart

"Jack.S" <JackS@discussions.microsoft.com> wrote in message
news:6F141E73-F50C-4ED7-8DCA-59C0300BC98A@microsoft.com...
> Hi,
> Thanks for your help.
> I have found another thing.When that happened, if I enable the function of
> SD to mass storage , I can see the "removal device" in the PC side, and
> then
> I disable the function, the "SDMMC" directory was shown in the root of
> Wince.
> So what is the problem? where should I check it in the codes?
>
> BRs
> Jack
>
>
> "vishal.g.shah@gmail.com" wrote:
>
>> Hi Jack ,
>> Try to enable all debug zones for sdmemory.dll using
>> target ->debugzones or pegasus registry entries and check the debug
>> messages . i guess i might be failing because of incorrect results
>> sent by your Host controller driver for Master Boot Record read
>> request sent by sdmemory.dll.
>>
>>
>>
>>
>> On Jun 18, 4:22 pm, Jack.S <Ja...@discussions.microsoft.com> wrote:
>> > Hi
>> > I have found some things. When the condition happened, I use
>> > regEdit.exe to
>> > check registry content. In the Hkey_Local_Machine\Drivers\Active\... ,
>> > I can
>> > find a index that include the
>> > KEY:\Driver\SDCARD\ClientDrivers\Class\SDMemory....
>> > I think that mean the SD client driver was load successful. Is it
>> > right?
>> > If it is, why the SDMMC directory was not shown in the root?
>> > ( I only insert SD card in the Device repeat and fast about 10 times)
>> >
>> > BR
>> > Jack
>> >
>> >
>> >
>> > "Joel Winarske" wrote:
>> > > Add printing a short string in the interrupt code (not the IST) for
>> > > insert, and one for remove. Then repeat your insert remove test.
>> > > You
>> > > should see the string(s) match your insert/remove sequence without
>> > > being jumbled. If things look jumbled you need to work on your
>> > > debouncing code.
>> >
>> > > Joel
>> >
>> > > On Jun 17, 1:27 am, Jack.S <Ja...@discussions.microsoft.com> wrote:
>> > > > Thanks for your replay.But I have consider debouncing the card
>> > > > present
>> > > > interrupt. Via software and hardware.
>> > > > It is when card insert/remove ,there is a interrupt.
>> > > > And if interrupt is happening ,My ISR will receive a event ,and
>> > > > will take a
>> > > > few seconds(about 1.5 s) for debouncing the card present interrupt.
>> > > > But "Cannt see SDMMC directory" still happen..
>> >
>> > > > "Joel Winarske" wrote:
>> > > > > I take it you are using interrupts for detecting card present?
>> >
>> > > > > If so you should consider debouncing the card present interrupt.
>> > > > > Via
>> > > > > software or hardware.
>> >
>> > > > > Joel
>> >
>> > > > > On Jun 16, 11:08 pm, Jack.S <Ja...@discussions.microsoft.com>
>> > > > > wrote:
>> > > > > > Dear all
>> > > > > > I do some test about SD driver.
>> > > > > > I insert SD card and can see SDMMC directory in the root.
>> > > > > > Then I unplug and plug SD card fast asap and do a continuous
>> > > > > > repeat(unplug
>> > > > > > and plug) about 10 times.
>> > > > > > The SD card is inserted in the device, but cant see SDMMC
>> > > > > > directory.I check
>> > > > > > the log, SD bus driver has loaded SDMemory.dll and process
>> > > > > > "SMC_Init(DWORD
>> > > > > > dwContext)" successful.But I cannt see the SDMMC directory.
>> > > > > > Can someone help how to solve or where to check it?
>> >
>> > > > > > BRs
>> > > > > > Jack- Hide quoted text -
>> >
>> > > > - Show quoted text -- Hide quoted text -
>> >
>> > - Show quoted text -
>>
>>



Re: Wince5.0: Cannt see SDMMC directory.? by F

F
Thu Jun 19 23:25:45 PDT 2008

Hi Jack,

have a look at the registry key "PNPUnloadDelay" in
[HKEY_LOCAL_MACHINE\System\StorageManager]. This value specifies the time
delay between unmounting and detaching a device. The default delay is
5000ms. I had a similar behaviour like you and in my case a reduction of
this value to 200ms fixed this problem. For more details search in the
online help for PNPUnloadDelay.

Frank



"Jack.S" <JackS@discussions.microsoft.com> schrieb im Newsbeitrag
news:B1BA630D-0B45-4005-9D0A-23E4522F5245@microsoft.com...
> Dear all
> I do some test about SD driver.
> I insert SD card and can see SDMMC directory in the root.
> Then I unplug and plug SD card fast asap and do a continuous
> repeat(unplug
> and plug) about 10 times.
> The SD card is inserted in the device, but cant see SDMMC directory.I
> check
> the log, SD bus driver has loaded SDMemory.dll and process "SMC_Init(DWORD
> dwContext)" successful.But I cannt see the SDMMC directory.
> Can someone help how to solve or where to check it?
>
> BRs
> Jack