Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: AT91FR40162 Flash Status
PostPosted: Tue Mar 23, 2010 10:23 pm 
Offline

Joined: Thu Mar 11, 2010 3:16 am
Posts: 2
To those concerned,

I'm performing a bulk erase on my AT91. I want to use the "toggle" method reading the status register to determine when the erase operation has finished. The problem is ... where exactly is the status register and how do I read it? I've scoured the data sheet for this part and similar parts. I find to specific reference on how to read the status register bits I7-I0. Any ideas?

Sincerely,
Eric Texley :?:


Top
 Profile  
 
 Post subject: Re: AT91FR40162 Flash Status
PostPosted: Wed Mar 24, 2010 3:03 am 
Offline

Joined: Thu Feb 25, 2010 5:02 pm
Posts: 88
I haven't used this part but I'll put in my 2 cents...

If I'm reading the data sheets correctly, after the erase command you should continually read from the flash and examine bit 6 of the 16-bit data until this bit stops toggling?

BTW: It looks to me that I/O0-15 from the internal flash are connected to D0-15.

See
http://www.atmel.com/dyn/resources/prod_documents/DOC1411.PDF

Quote:
TOGGLE BIT: In addition to Data Polling, the AT49BV/LV16X4A(T) provides another method
for determining the end of a program or erase cycle. During a program or erase operation,
successive attempts to read data from the same memory plane will result in I/O6 toggling
between one and zero. Once the program cycle has completed, I/O6 will stop toggling and
valid data will be read. Examining the toggle bit may begin at any time during a program cycle.
An additional toggle bit is available on I/O2, which can be used in conjunction with the toggle
bit that is available on I/O6. While a sector is erase suspended, a read or a program operation
from the suspended sector will result in the I/O2 bit toggling. Please see “Status Bit Table” on
page 21 for more details.


Also might want to take a peek at the Errata Sheet for this part:

http://www.atmel.com/dyn/resources/prod_documents/doc6076.pdf

Quote:
1. Full Chip Erase Command May Not Fully Erase Flash
When using the Full Chip Erase Command to erase the Flash, the Flash may not
be fully erased. Some bytes may be different than 0xFF.
Workaround: Erase the Flash sector by sector with the Sector Erase
command.

_________________
Duane P. Fridley, IEEE CSDP
Viable Bytes, Inc.


Top
 Profile  
 
 Post subject: Re: AT91FR40162 Flash Status
PostPosted: Wed Mar 24, 2010 5:17 pm 
Offline

Joined: Thu Mar 11, 2010 3:16 am
Posts: 2
I want to thank you for responding to my post. I'm going to try this now and see what result I get.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: