I found when i wrote file into flash patition,if the system power is
off,winCE OS offen could not be startup.With the debug message,there
was a exception by filesys.exe.Is the patition table corrupted?If so,
how can i prevent this? or how the OS can reformat the flash partion
automaticly if the partion table was corrupted?

Another question is that:how to creat two partions in the rest unused
nor flash? By default I can just see one partion :"NOR Flash".

Re: About Filesystem and partition by voidcoder

voidcoder
Thu Dec 28 15:26:03 CST 2006


Have you tried to enable TFAT file system? This should
help (but still not in all situations) to survive the
sadden power off. Anyway it is bad h/w design when OS
does not receive any chance to power down correctly.
What would you expect if the system is powered off
somewhere in the mid of the flash block write or block
erase operation?


harber wrote:
> I found when i wrote file into flash patition,if the system power is
> off,winCE OS offen could not be startup.With the debug message,there
> was a exception by filesys.exe.Is the patition table corrupted?If so,
> how can i prevent this? or how the OS can reformat the flash partion
> automaticly if the partion table was corrupted?
>
> Another question is that:how to creat two partions in the rest unused
> nor flash? By default I can just see one partion :"NOR Flash".

Re: About Filesystem and partition by harber

harber
Fri Dec 29 08:05:33 CST 2006

yes,I tried TFAT.It`s more safe than FAT but also sometimes (much less
probability) crashed.
I developed an application that wrote file into NOR flash always and
plug out the battery.In this case,the OS sometimes stoped at the
process "filesys.exe" and can not startup any more.....

I want to create two partition one place my app and one leave for my
data(this area can be erased and wrote).So when the data partition
crashed ,OS can auto format the bad data partition by set "AutoFormat"
opition in the registry and the app partition is well.

> Have you tried to enable TFAT file system? This should
> help (but still not in all situations) to survive the
> sadden power off. Anyway it is bad h/w design when OS
> does not receive any chance to power down correctly.
> What would you expect if the system is powered off
> somewhere in the mid of the flash block write or block
> erase operation?
>
>
> harber wrote:
>> I found when i wrote file into flash patition,if the system power is
>> off,winCE OS offen could not be startup.With the debug message,there
>> was a exception by filesys.exe.Is the patition table corrupted?If so,
>> how can i prevent this? or how the OS can reformat the flash partion
>> automaticly if the partion table was corrupted?
>>
>> Another question is that:how to creat two partions in the rest unused
>> nor flash? By default I can just see one partion :"NOR Flash".

Re: About Filesystem and partition by harber

harber
Fri Dec 29 08:49:12 CST 2006

yes,I tried TFAT.It`s more safe than FAT but also sometimes (much less
probability) crashed.
I developed an application that wrote file into NOR flash always and
plug out the battery.In this case,the OS sometimes stoped at the
process "filesys.exe" and can not startup any more.....

I want to create two partition one place my app and one leave for my
data(this area can be erased and wrote).So when the data partition
crashed ,OS can auto format the bad data partition by set "AutoFormat"
opition in the registry and the app partition is well.


> Have you tried to enable TFAT file system? This should
> help (but still not in all situations) to survive the
> sadden power off. Anyway it is bad h/w design when OS
> does not receive any chance to power down correctly.
> What would you expect if the system is powered off
> somewhere in the mid of the flash block write or block
> erase operation?
>
>
> harber wrote:
>> I found when i wrote file into flash patition,if the system power is
>> off,winCE OS offen could not be startup.With the debug message,there
>> was a exception by filesys.exe.Is the patition table corrupted?If so,
>> how can i prevent this? or how the OS can reformat the flash partion
>> automaticly if the partion table was corrupted?
>>
>> Another question is that:how to creat two partions in the rest unused
>> nor flash? By default I can just see one partion :"NOR Flash".

Re: About Filesystem and partition by Sachin

Sachin
Thu Jan 04 15:09:30 CST 2007

One thing to check is that FMD_EraseBlock is atomic. If you are using our
strata flash driver, then make sure that you have the latest QFEs (to
verify, you should have a VerifySignitures function in the FMD).

Sachin

--
_____________________________________________________________
This posting is provided "AS IS" with no warranties, and confers no rights.
_____________________________________________________________

"harber" <cool_harber@hotmail.com> wrote in message
news:emzUCi1KHHA.1248@TK2MSFTNGP02.phx.gbl...
> yes,I tried TFAT.It`s more safe than FAT but also sometimes (much less
> probability) crashed.
> I developed an application that wrote file into NOR flash always and
> plug out the battery.In this case,the OS sometimes stoped at the
> process "filesys.exe" and can not startup any more.....
>
> I want to create two partition one place my app and one leave for my
> data(this area can be erased and wrote).So when the data partition
> crashed ,OS can auto format the bad data partition by set "AutoFormat"
> opition in the registry and the app partition is well.
>
>
>> Have you tried to enable TFAT file system? This should
>> help (but still not in all situations) to survive the
>> sadden power off. Anyway it is bad h/w design when OS
>> does not receive any chance to power down correctly.
>> What would you expect if the system is powered off
>> somewhere in the mid of the flash block write or block
>> erase operation?
>>
>>
>> harber wrote:
>>> I found when i wrote file into flash patition,if the system power is
>>> off,winCE OS offen could not be startup.With the debug message,there
>>> was a exception by filesys.exe.Is the patition table corrupted?If so,
>>> how can i prevent this? or how the OS can reformat the flash partion
>>> automaticly if the partion table was corrupted?
>>>
>>> Another question is that:how to creat two partions in the rest unused
>>> nor flash? By default I can just see one partion :"NOR Flash".



Re: About Filesystem and partition by harber

harber
Thu Jan 11 08:53:22 CST 2007

Sachin Patel [MS] дµÀ:
> One thing to check is that FMD_EraseBlock is atomic. If you are using our
> strata flash driver, then make sure that you have the latest QFEs (to
> verify, you should have a VerifySignitures function in the FMD).
>
> Sachin
>
Thanks.But I just found VerifySignitures in PB5.0 but not in PB4.2.
(Both with the latest QFES)