Thread (1 message) 1 message, 1 author, 2004-11-06

Re: Handling power failure - MPC5200

From: Wolfgang Denk <hidden>
Date: 2004-11-06 01:54:29

In message <007d01c4c37e$17e8e0d0$0301a8c0@chuck2> you wrote:
So maybe, are you thinking that a power fail interrupt is a waste of
time?  Just segment the file system as you suggested and trust the
writeable part to jffs2?
A PF interrupt can be extremely useful - if it leaves you enough time
to do the things you want to  do.  If  all  you  got  is  50  or  100
milliseconfs  then you have little chance to avoid problems with a CF
card that is being written to. In such a case you  must  design  your
system such that it is robust enough even without such cleanup.
Another technique that has fallen out of favor but is still useful in some
applications is battery backed RAM.  It's relatively expensive, but if
you want fast non-volatile memory it can't be beat.
It depends. Sometimes you may have a  battery,  and  the  power  fail
signal  is  just a warning that leaves you enough time for an orderly
shutdown.

Best regards,

Wolfgang Denk

-- 
See us @ Embedded/Electronica Munich, Nov 09 - 12, Hall A.6 Booth 513
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Humans do claim a great deal for that particular emotion (love).
	-- Spock, "The Lights of Zetar", stardate 5725.6
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help