Skip to content

Spi memory lock #1415

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Beerosagos
Copy link
Collaborator

@Beerosagos Beerosagos commented Apr 17, 2025

This adds api calls to lock/unlock and write a protected area of the memory.

This PR includes a test function to be removed before merging

@Beerosagos Beerosagos force-pushed the spi-memory-lock branch 2 times, most recently from 28dc7c4 to 950a314 Compare April 17, 2025 10:56
// set the top/bottom protection bit.
// This is an OTP bit,so the write will have an effect
// only the first time.
reg[1] = reg[1] | CR1_TB_BIT_BOTTOM;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure if it is ok to add this here, or if we want to do it inside the driver during the init function.

@Beerosagos Beerosagos force-pushed the spi-memory-lock branch 2 times, most recently from 1ba0527 to 050dd3e Compare April 17, 2025 16:05
@Beerosagos Beerosagos force-pushed the spi-memory-lock branch 2 times, most recently from c1a7ab8 to 49badb6 Compare April 28, 2025 10:45
This adds api calls to lock/unlock and write a protected area of the
memory.
@Beerosagos Beerosagos marked this pull request as ready for review April 29, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant