[U-Boot-Users] using static variables

Wolfgang Denk wd at denx.de
Mon Mar 27 09:30:29 CEST 2006


In message <442786A3.5000909 at slb.com> you wrote:
> 
> Since your flash is up and running the easyest is probably to erase a 
> flash sector before starting up and then write directly to that address.

This does not work, because you cannot  run  any  flash  driver  code
(which  will  set  the  flash  into programming mode and thus prevent
reading normal data) while you are still running from flash  (so  you
need to be able to fetch instructions and data from flash).

And it is a very bad idea anyway  as  each  reset  would  reduce  the
filetime of your product.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I wish Captain Vimes were here. He wouldn't have  known  what  to  do
either, but he's got a much better vocabulary to be baffled in.
                                 - Terry Pratchett, _Guards! Guards!_




More information about the U-Boot mailing list