Skip to content

Check at compile-time that CIRCUITPY_INTERNAL_NVM_SIZE size is a multiple of smallest flash erase size #2620

@dhalbert

Description

@dhalbert

Add preprocessor checks to ensure that CIRCUITPY_INTERNAL_NVM_SIZE is a multiple of the page or row erase size. Otherwise writing the nvm will erase adjacent flash memory temporarily, which could damage vital data or code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions