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  [ 2 posts ] 
Author Message
 Post subject: AT91SAM7X512 EFC problems
PostPosted: Mon Jun 22, 2009 8:52 am 
Offline

Joined: Mon Oct 27, 2008 2:25 pm
Posts: 13
hi,

I'm using the AT91SAM7X512 and tried to write the internal flash.
I encountered some big problems while doing this.

In my code i configured the wait states register of the EFC in 2 places (to the same value).
When i did this flash writing did not worked. when i marked one of the configurations, it worked.
So this is the first little voodoo i got.
Also, i'm using 2 cards for development - the AT91SAM7X-EK and in house card. in the EK the problem was fixed with this solution, but in the other card the EFC behaved very strangly:
Sometimes the flash write didn't work at all.
Sometimes it burned in a page offset.
Sometimes it had no offset but the first page was written badly.
(I must say this bahaviors also accured in the EK sometimes, before fixing the problem).

I tried many values for the EFC register (both wait states field and the number of cycles in uSec). also tried many variations of configuring this register in different places/different times (at startup/before writing the flash/...). nothing changed.

Does anybody experienced this before?

thanks,
Dan


Top
 Profile  
 
 Post subject: Re: AT91SAM7X512 EFC problems
PostPosted: Tue Jun 23, 2009 10:37 am 
Offline

Joined: Mon Oct 27, 2008 2:25 pm
Posts: 13
hello again,

I found a workaround for my problem, which raise some questions about the EFC reliability.
if i disable the auto-erase feature, and erase each page by myself before burning it, everything works fine.

so now my questions are:
1. Does anybody encountered this problem (with auto-erase)?
2. If i write the EFC page buffer BEFORE erasing the page, can i be sure the data in the page buffer will remain correct? (i need this in order to change just one word in the page - thus copying the flash page to the page buffer before erasing it).

Dan


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 24 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: