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? Ran
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 ]
Posted on November 14, 2006 at 05:12Yes, the Code Temporary Unprotection routine is OK. Please keep in mind that when both ACCP and DBGP are cleared, there is no possibility to read, erase the IFlash if the user did NOT put INSIDE the Flash itself the unprotection commands. So the unprotection commands must be put inside the user's application with a special sequence to trigger the unprotection. Regards, Najoua.