Re: Problem writing to directly flash while IPSM running

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Brian Price (brianp_at_appliedcs.com.au)
Date: 06/24/04


Date: 24 Jun 2004 16:09:12 -0700

Hi
We are using the Intel Strata Flash 28F640J3A120 chips.

Reading of the specification would seem to indicate that if an erase
is in progress then before anything else can run, the erase suspend
command should
be issued. Similarly, when writing the program.

So, if I understand this right, for my application to work I need to
have the code running out of RAM AND disable interrupts to prevent
access to the flash.

If this is the case then is it sufficient to mark a module as SHC to
get it to run out of RAM.

Following on from that - how do I disable interrupts from the device
driver that is doing the operation. It runs at User mode level. Do I
need to switch to kernel mode to disable interrupts? Or should I
provide a mechanism in the OAL via OEMIoControl() to disable and
enable interrupts.

Thanks in Advance
Brian Price
brianprice_AT_appliedcs_DOT_com_DOT_au

"Robert Magyar" <RobertMagyar@discussions.microsoft.com> wrote in message news:<78500914-8A79-40B8-819E-EE64C5B57DE2@microsoft.com>...
> Check that your flash's device specification, to see if it says that you can run from one block while writing another, or if it says that you can run from
one bank while writing to a different bank. Often you can not read,
from a
bank, that you are writing to.
> --
> Robert
>



Relevant Pages

  • Re: document ext3 requirements
    ... They can't explicitly control erase, but writing to any block in a block group ... if you have a raid5/6 array writing one sector to a stripe results in you reading the pairity block for that stripe, reading the rest of the sectors for the block on that disk, recalculating the pairity information and writing the changed sectors out to both disks. ...
    (Linux-Kernel)
  • Help: SuSE 8.2 pro CD writing problems.
    ... user could only see the dvd-rom in the k3b config. ... on /dev/sr1 to 660 to enable group disk to write to the emulated scsi ... Logged in as a normal, completely local user, I can erase a re-writable, ... re-gain acess to them (for writing). ...
    (alt.os.linux.suse)
  • Re: Atheists support evolution because evolution supports their
    ... by writing a sentence, but leaving my name under it. ... would be nice if you would erase my name so that it ... He seemed to have a good grasp of the concepts of religion and he had faith ...
    (talk.origins)
  • Re: How to "Archive" a text file with multiple handles open
    ... I use a similar method for writing to multiple log locations. ... While there are open file handles you can't "zero out" (erase the contents of) a file. ... The reason being that the other file streams are looking for data at a particular location.. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to generate delay of 360ns for an embedded application using c
    ... > I want to generate a delay of 360ns between this writing and ... You can't do exact timing in software. ... exact-ish you'll have to disable interrupts while you are doing it- ...
    (comp.arch.embedded)