Skip to content

PAGE_LOCKS are not ECC #3

Open
Open
@polhenarejos

Description

@polhenarejos

From the datasheet:

Lock bits in OTP are triple-redundant with a majority vote. They can’t be ECC-protected, because they may be mutated
bit-by-bit over multiple programming operations.

which makes sense.

But in the main.c code, ECC is used to lock the page 48, albeit 3 bytes are provided (which is clearly raw). If it is ECC, only 2 bytes should be provided.

cmd.flags = OTP_DATA_PAGE48_LOCK1_ROW | OTP_CMD_ECC_BITS | OTP_CMD_WRITE_BITS;

If I understood correctly, OTP_CMD_ECC_BITS should not be used.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions