Windows Embedded
(1)
DefaultFileSystem
(1)
MountAsHidden
(1)
RegFlushKey
(1)
MountAsRom
(1)
EMVP
(1)
WriteSector
(1)
DriverPath
(1)

FMD_WriteSector is called continuosly !

Asked By paolo patierno
20-Nov-09 03:13 AM
Hello,
I am 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 is invoked. I see that after that the OS start and the shell appears,
the FMD_WriteSector is called continuosly ! I do not 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

Is your NAND already formatted?

Luca Calligaris [eMVP] replied to paolo patierno
20-Nov-09 04:49 AM
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.calligaris.nospam@eurotech.it.nospam
www.eurotech.it

Yes...the Nand is already formatted and AutoFormat is not set.

paolo patierno replied to Luca Calligaris [eMVP]
20-Nov-09 05:41 AM
Yes...the Nand is already formatted and AutoFormat is not set.
Here my settings :

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk]

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk\FATFS]

Thanks,
Paolo

I have seen the following strange thing :I have hive registry in NAND.

paolo patierno replied to paolo patierno
20-Nov-09 06:27 AM
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 is not 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
I have found the cause.....read this article :http://blogs.msdn.
paolo patierno replied to Luca Calligaris [eMVP]
20-Nov-09 07:01 AM
I have found the cause.....read this article :

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

Thanks,
Paolo
The thread you are talking about is run by filesys process to flush
Luca Calligaris [eMVP] replied to paolo patierno
20-Nov-09 08:29 AM
The thread you are 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.calligaris.nospam@eurotech.it.nospam
www.eurotech.it
Post Question To EggHeadCafe