|
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
|