cancel
Showing results for 
Search instead for 
Did you mean: 

iFLASH unprotecting

bob2
Associate II
Posted on November 15, 2007 at 10:32

iFLASH unprotecting

4 REPLIES 4
bob2
Associate II
Posted on November 14, 2007 at 07:14

When you have applied WRITE protection (NOT access protection) to a block of iFLASH. If you now want to UNPROTECT this block, you writes ONES to the block control bits and use the 'set protection' command.

I find the data sheet unclear in its description. Please can someone clarify the following.

Will the UNPROTECT now be PERMANENT or is it only TEMPOARY (i.e Bobuntil the next CPU reset)?

The snag is, if one is attempting to protect a BOOT BLOCK you have to reboot the CPU to enter BSL mode and would the PROTECTION be re-applied or not?

Bob

najoua
Associate II
Posted on November 15, 2007 at 07:19

Hello Bob2,

Once a Flash block is Write protected, it can be only TEMPORARILY unprotected by writing ones into Bits WyPx of FNVWPXRH/L-FNVWPIRH/L and executing the Set Protection operation (The un-protection is Temporary and can not be permanent).

To restore the write protection, it is necessary either to reset the microcontroller or to execute a Set Protection operation and write 0 into the desired bits.

Regards,

Najoua.

bob2
Associate II
Posted on November 15, 2007 at 10:29

Najoua, many thanks. I have another question and I will put that in a new thread.

Bob

najoua
Associate II
Posted on November 15, 2007 at 10:32

Ok , you are welcome.