Skip to content

Implement use_global_block_protection_lock for write-enabling flash. #10249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 14, 2025

Conversation

eightycc
Copy link
Collaborator

For most flash memory parts, the sector protection mechanism can be disabled by clearing the part's status register. The Microchip SST26VFxxxB parts do not use status register bits to control sector protection. Instead, they require issue of a global block protection unlock (0x98) to disable sector protection. This PR does the following:

Fixes issues #10172 and #8047.

Fix mis-placed conditional in circuitpy_mpconfig.h.
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thank you!

@tannewt tannewt merged commit 70ec2a1 into adafruit:main Apr 14, 2025
615 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants