-
Notifications
You must be signed in to change notification settings - Fork 7.3k
stm32 flash read out protection rdp in a common file #81876
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
base: main
Are you sure you want to change the base?
Conversation
837931e
to
31efa57
Compare
31efa57
to
900408b
Compare
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
900408b
to
75fef9a
Compare
rebased on 0717698 |
Move the flash_stm32_write_protection and flash_stm32_option_bytes_lock functions to a common file for stm32 devices including stm32h7 Signed-off-by: Francois Ramu <[email protected]>
75fef9a
to
354c035
Compare
rebase on 3d2059f |
kind reminder |
regs->OPTCR |= FLASH_OPTCR_OPTLOCK; | ||
} else if (regs->OPTCR & FLASH_OPTCR_OPTLOCK) { | ||
regs->OPTKEYR = FLASH_OPT_KEY1; | ||
regs->OPTKEYR = FLASH_OPT_KEY2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting problem
Following the PR "Implement readout protection for STM32H7" #76640, it appears that
" Function flash_stm32_option_bytes_lock() seems to be the obvious candidate to be moved to" a common file to stm32h7 anr other stm32 series.
This common file could be the existing drivers/flash/flash_stm32_ex_op.c
The flash_stm32_option_bytes_lock() is moved there and the flash_stm32_write_protection is made external to that file