Disabling caching when using TFAT and other stuff



Hi all,

I am using in my WinCE 5.0 project two FMDs to divide my flash memory
in two (independent) areas, one for the hive registry and the other
for user's Storage (mounted as root). Based on this post:

http://groups.google.de/group/microsoft.public.windowsce.platbuilder/browse_thread/thread/fe97461486ba8a6c/3782c8a03712e6c8?hl=en&lnk=gst&q=two+fmd+storage+manager#3782c8a03712e6c8

I use two DLLs (but same code) for each profile. The low level access
to the flash device is controlled by a mutex.
The flags for automatically mounting, partitioning and formating are
set for both drivers. Both drivers are loaded in the 1st bootphase.

So far, it seems to be working. The problem comes when I delete ONE of
those areas (using the bootloader). After doing that, the board boots
and format BOTH areas. I don't understand why this is happening.

As I am not creating any partition in these flash areas, I tried
setting the PartitionDriver to an empty stream (in both drivers). The
formatting was faster (I guess that with the mspart library it does a
full format and without it a fast format is executed). Interesting, a
couple of month ago, this change also help me to get the formatting of
both areas independently. But now, it does not work anymore. The only
changes that I have done in the meantime were the QFE updates.

I still can't understand why these two flash areas aren't independent
from each other. Both get a different profile. For the Storage Manager
should mean that they are unrelated.

Another thing is, I am trying to disable FS caching in these profiles.
I set the EnableCache flag to zero. I don't know if this is enough(?).
I mean, I see also the FATFS_FORCE_WRITETHROUGH mask for the Flags
entry.

I tried tu used it and it makes the access to the flash by far slower
than without it. There is also the EnableWriteBack flag (which I still
don't test). I am confused. I hope that someone of you may clarify to
me those issues.

Thanks in advance for your help.

Alex












.



Relevant Pages

  • Re: Embeded Video
    ... What is the best/most accessible format to use? ... If you give only one format choice on a page, modern flash flv/swf ... video activity, pay sites, and other special purpose ones may make one ... When there are updated versions of OSs, browsers, or players, issues ...
    (alt.html)
  • Re: Persistent storage on WinCE 5.0
    ... think they will format everytime. ... block driver or refer to their documentation or the code itself. ... the FASL FMD uses the CFI to determine the size of the flash ... We have Flash memory driver. ...
    (microsoft.public.windowsce.embedded)
  • Re: Old format version
    ... The people think the Constitution protects their rights; But government sees it as an obstacle to be overcome. ... |>I also use a CF card with a Lexar USB 2.0 Reader that |>supports about 10 different card types. ... |>You might look at www.lexarmedia.com and or Google for |>"compact flash software format" or other terms. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Windows Media Player and Videos
    ... Flash is a proprietary format. ... The movies play in your browser when you have downloaded the flash plug-in. ... A couple of weeks ago one of the sites changed all my file extensions from wmv to flv. ... Today my other host site has e-mailed me to say that it is also changing to flv format. ...
    (microsoft.public.windowsxp.basics)
  • Re: Accessing HTML embeded objects with Internet Explorer ActiveX.
    ... Since I am controlling how the HTML is generated, I also know what file ( ... flash, wmv etc) is being embeded into the HTML file. ... create separte code paths which are specific for each file format. ... Media Player or QuickTime respective events. ...
    (microsoft.public.dotnet.languages.csharp)