Re: Atmel flash memory issue, maybe?



Thanks Sudip.

But is rewriting without erasing so bad that it will destroy the entire
flash chip?

--Vishnu

Sudip wrote:
Vishnu Swaminathan wrote:
Hello folks,

I am using Atmel flash AT49BV322DT in a custom dsp board i am building.
the dsp is a TI 320DM641. I have written test software that erases, writes
and reads from the flash.

When I send the sequence of erase commands to the flash, I am able to see
write signals on the scope. Shortly thereafter, I also see the Ready/Busy/
output from the flash go low, as expected. Same thing while writing. I cam
also read the data back from the flash. so far, so good.

yesterday, all of a sudden, after half a day's experimenting with flash
timing, the thing stopped working. the READY/BUSY signal would not respond
to any command sequence.

The only thing I can think of is that one must __ALWAYS__ do an erase
before a write. While exprimenting with flash timings, I performed quite a
few (8-10-20) writes. unfortunately, i did not scope the signals during
each write, so i do not know exactly when the thing stopped working.

So, my question is: do I always need to erase before reprogramming the
flash? Is this true of all flash memories?


Not the whole flash, but yes u have to erase those specific sectors
where you are going to rewrite. If you use any of flash writers, they
actually erase the required sectors before reprogramming.


tomorrow i am going to replace the chip.

Any help will be greatly appreciated.

Thanks!

--Vishnu

.



Relevant Pages

  • Re: o_sync in vfat driver
    ... flash disks are not stupid as you assume. ... It takes about a second to erase a 64k physical sector. ... device eth0 entered promiscuous mode ... movb $0xaa, 0x555 ...
    (Linux-Kernel)
  • Re: document ext3 requirements
    ... +stay on the disk. ... An inherent problem with using flash as a normal block device is that the ... flash erase size is bigger than most filesystem sector sizes. ...
    (Linux-Kernel)
  • Re: Reiser4 status: benchmarked vs. V3 (and ext3)
    ... > Don't confuse block size with erase size. ... that if an IO request size does not equal to flash ... > However since you said that one can plug in a different block allocation ... Plugin-based architecture is used in reiser4, ...
    (Linux-Kernel)
  • Unable to erase flash HC08
    ... I am unable to erase flash pages on an HC08QT4. ... the 'write to any address in the flash page' part of the erase routine, ... erases your reset vector if the ROM routine is called. ...
    (comp.arch.embedded)
  • Re: Confused about Flash
    ... If I write a secret combination of words to a secret list of addresses ... Apparently I can't do normal reads during erase, ... During erase or program, I again can't execute code out of flash, so ... I'll have to relocate the flash erase and write routines into CPU ram ...
    (sci.electronics.design)