Skip to main content
Visitor II
June 19, 2023
Solved

Secure st25dv04k from RF write

  • June 19, 2023
  • 1 reply
  • 1086 views

How to secure st25dv04k from data overwriting by an RF device?

    This topic has been closed for replies.
    Best answer by JL. Lebon

    Hello,

    You can protect memory areas in read and/or write.
    Protection can be either temporarily disabled by a password presentation or permanent.

    To enable the data protection for a memory area, you have 4 configuration Bytes (one per possible memory area): RFA1SS, RFA2SS, RFA3SS and RFA4SS. Please refer to the chapter "5.6 Data protection" of the datasheet for the description of those configuration bytes.

    You may also want to configure the memory in several areas. Each area can be individually protected. By default (factory setting), there is only one area, occupying the full memory.

    Typically, if you want to protect the write access of this area (area1), you would write RFA1SS=05h. This would protect your area1 (full memory by default) in write, with password 1. In order to write into area1, you would then have to present the password 1 first (Present Password command), otherwise write would fail. Password 1 is be default all 00, but you can change it with a Write Password command.

    Best regards.

    1 reply

    JL. LebonAnswer
    ST Employee
    June 20, 2023

    Hello,

    You can protect memory areas in read and/or write.
    Protection can be either temporarily disabled by a password presentation or permanent.

    To enable the data protection for a memory area, you have 4 configuration Bytes (one per possible memory area): RFA1SS, RFA2SS, RFA3SS and RFA4SS. Please refer to the chapter "5.6 Data protection" of the datasheet for the description of those configuration bytes.

    You may also want to configure the memory in several areas. Each area can be individually protected. By default (factory setting), there is only one area, occupying the full memory.

    Typically, if you want to protect the write access of this area (area1), you would write RFA1SS=05h. This would protect your area1 (full memory by default) in write, with password 1. In order to write into area1, you would then have to present the password 1 first (Present Password command), otherwise write would fail. Password 1 is be default all 00, but you can change it with a Write Password command.

    Best regards.