Skip to content
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

drivers: flash: stm32h7 fix RDP #84430

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

niedzwiecki-dawid
Copy link
Member

Fix RDP EX_OP for STM32H7. It includes:

  • checking and changing RDP level with correct registers.
  • waiting for the end of the change operation.

drivers/flash/flash_stm32h7x.c Show resolved Hide resolved
drivers/flash/flash_stm32h7x.c Outdated Show resolved Hide resolved
The RDP level is set with the FLASH_OPTSR_PRG register and read with the
FLASH_OPTSR_CUR register, not FLASH_OPTCR.

Fix that to realy change and read RDP.

Signed-off-by: Dawid Niedzwiecki <[email protected]>
Make sure to submit a change of option bytes and wait for the end of
the operation. It is done by checking the OPT_BUSY bit.

Signed-off-by: Dawid Niedzwiecki <[email protected]>
@niedzwiecki-dawid niedzwiecki-dawid force-pushed the drivers_flash_stm32h7_rdp_fix branch from ae90fd3 to 40b0760 Compare January 24, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants