Page 1 of 1

DataFlash Chip Erase

Posted: Fri Jun 19, 2009 9:41 am
by kopiad
We have an AT91SAM9260 with a AT45DB321D data flash memory.
A full data flash erase using SAM-BA with the default AT91SAM9260-EK scripts takes a bit over one minute to perform.
The AT45DB321D supports a chip erase command that I think is much faster. Is there any easy way to perform the chip erase command just using tcl scripts or do we have to modify the isp-applets?

Re: DataFlash Chip Erase

Posted: Sat Aug 22, 2009 7:45 am
by kopiad
Editing and compiling the SAM-BA applets was easier than I expected. The Flash erase time is now about 6 seconds (more than 10 times faster than before).

Re: DataFlash Chip Erase

Posted: Sat Aug 22, 2009 6:46 pm
by socrates
Tell us more :)

Re: DataFlash Chip Erase

Posted: Tue Aug 25, 2009 4:11 pm
by kopiad
Simply switching from Page Erase to Block Erase reduced the erase time by 2-3 times (Chip Erase is broken on the AT45DB321D and Sector Erase is slower than Block Erase).

As we have some unused areas in the flash, a simple check if the page/block already was erased or not further improved the erase speed as a read of a page is much faster than the erase command.