Skip to main content
Visitor II
November 15, 2007
Question

iFLASH unprotecting

  • November 15, 2007
  • 4 replies
  • 1208 views
Posted on November 15, 2007 at 10:32

iFLASH unprotecting

    This topic has been closed for replies.

    4 replies

    bob2Author
    Visitor II
    November 14, 2007
    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

    Visitor II
    November 15, 2007
    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.

    bob2Author
    Visitor II
    November 15, 2007
    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

    Visitor II
    November 15, 2007
    Posted on November 15, 2007 at 10:32

    Ok , you are welcome.