2006-11-13 08:21 PM
2006-11-12 07:13 PM
Hi all,
I want to use *Access* protection (for all but me), with the update option (for me only). Can I use CTU (Code Temporary Protection)? I don't want to use permanent unprotection... I would like unprotect the whole I-Flash. Can some one attach an C/ASM code for Temporary Unprotect for I-Flash? Ran2006-11-12 07:36 PM
Hello,
The IFLASH can be temporary unprotected in access by executing the Set Protection operation and writing 1 into ACCP bit in FNVAPR0 (0x0E DFB8), but only if these write instructions are executed from the Flash itself. Note: It is not necessary to temporary unprotect an access protected Flash in order to update the code: it is, in fact, sufficient to execute the updating instructions from another Flash Bank. Regards, Najoua. [ This message was edited by: Najoua on 13-11-2006 10:31 ]2006-11-13 07:15 PM
Do You mean, by calling this function which in the I-Flash?
void IF_UnProtect(void) { FCR0H |= 0x0100; /* set protection operation */ FARL = 0xDFB8; /* load FNVAPR0 */ FARH = 0x000E; FDR0L = 0xFFFF; /* DBGP = ACCP = 1 */ FCR0H |= 0x8000; /* operation start */ }2006-11-13 08:12 PM
2006-11-13 08:21 PM
Thank You :)