Skip to main content
ssk
Associate III
January 22, 2016
Question

Protecting Flash

  • January 22, 2016
  • 1 reply
  • 812 views
Posted on January 22, 2016 at 10:05

Hello Erwan,

For one of the posts, you mentioned about setting following registers along with the accompanying underlined statement. Can you please explain the underlined statement in detail?

If both CW and SC registers should match for values, how the statement 1) can be true?

The best mode for your case is to use the censored mode.

Private Flash Memory Password and censored

1) Set NVSCC0(CW) , NVSCC1(CW) different to 0x55AA. 

    Set NVSCC0(SC) , NVSCC1(SC) equals 0x55AA.

  

   

IMPORTANT : NVSCC0(CW,SC) must be equal to NVSCC1(CW,SC) otherwise your chip will be completely locked.

Thanks in advance.

Mike
    This topic has been closed for replies.

    1 reply

    Erwan YVIN
    ST Employee
    January 22, 2016
    Posted on January 22, 2016 at 11:07

    Hello Mike ,

    See Table 11 (cf Attachment)

    in FAB Mode

    you should have :

    NVSCC0(CW) ==NVSCC1(CW)

    andNVSCC0(CW) != 55AA

    andNVSCC1(CW) != 55AA

    NVSCC0(SC) ==NVSCC1(SC)

    andNVSCC0(SC) == 55AA

    andNVSCC1(SC) == 55AA

    if((NVSCC0(CW) !=NVSCC1(CW)) and (NVSCC0(SC) !=NVSCC1(SC))

    ===> FLASH IS LOCKED

    Best regards

    Erwan

    ________________

    Attachments :

    2016-01-22_103759.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0TW&d=%2Fa%2F0X0000000bZh%2FXQu2eleqVyZc1N_DoPp8h6hXBfLsvjmLUT7IeTbvnhk&asPdf=false