Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FMD_WriteSector is called continuosly !

3 views
Skip to first unread message

paolo patierno

unread,
Nov 20, 2009, 3:13:01 AM11/20/09
to
Hello,
I'm working on Windows CE 5.0 and Freescale BSP imx31.
I have a question about an FMD driver for my NAND Flash.
I have put a RETAILMSG instruction in the function FMD_WriteSector to trace
when it's invoked. I see that after that the OS start and the shell appears,
the FMD_WriteSector is called continuosly ! I don't use the shell .... who is
writting in the Flash ??! On the NAND I have the hive registry but I have
disabled the thread that save every 1000 ms (default).

Thanks,
Paolo

Luca Calligaris [eMVP]

unread,
Nov 20, 2009, 4:49:45 AM11/20/09
to
Is your NAND already formatted? If it is not and in the registry the device
profile has the "AutoFormat" value those writes can derive from it

--
Luca Calligaris (MVP-Windows Embedded)
l.calliga...@eurotech.it.nospam
www.eurotech.it


"paolo patierno" <paolop...@discussions.microsoft.com> ha scritto nel
messaggio news:4E4ADA0A-BDF4-4A3D...@microsoft.com...

paolo patierno

unread,
Nov 20, 2009, 5:41:01 AM11/20/09
to
Yes...the Nand is already formatted and AutoFormat isn't set.
Here my settings :

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk]
"DriverPath"="Drivers\\BuiltIn\\NANDFMD"
"Name"="NANDFLASH"
"Folder"="NANDFlash"
"DefaultFileSystem"="FATFS"
"AutoMount"=dword:1
"AutoPart"=dword:1

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk\FATFS]
"Flags"=dword:00000014
"FormatTfat"=dword:1 ; Format partitions to be TFAT
"MountAsRom"=dword:0
"MountAsHidden"=dword:0

Thanks,
Paolo

"Luca Calligaris [eMVP]" wrote:

> .
>

paolo patierno

unread,
Nov 20, 2009, 6:27:02 AM11/20/09
to
I have seen the following strange thing :
I have hive registry in NAND. If I remove hive registry based component in
my os design, the function FMD_WriteSector isn't called continuosly ! I have
disabled the thread that updates the hive registry every 1000 ms. So...why
the hive component is writing in NAND !??

Thanks,
Paolo

paolo patierno

unread,
Nov 20, 2009, 7:01:01 AM11/20/09
to
I have found the cause.....read this article :

http://blogs.msdn.com/ce_base/archive/2005/09/22/472807.aspx

Thanks,
Paolo

"Luca Calligaris [eMVP]" wrote:

> .
>

Luca Calligaris [eMVP]

unread,
Nov 20, 2009, 8:29:16 AM11/20/09
to
The thread you're talking about is run by filesys process to flush the
registry after a specified amount of time or a specified amount of changes.
Indipendently from it, every time an application call
RegFlushKey the registry is flushed to the storage

--
Luca Calligaris (MVP-Windows Embedded)
l.calliga...@eurotech.it.nospam
www.eurotech.it


"paolo patierno" <paolop...@discussions.microsoft.com> ha scritto nel

messaggio news:BB7C9EAD-11CB-4AD1...@microsoft.com...

0 new messages