-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Implement readout protection for STM32H7 #76640
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
Conversation
|
Also tested on the stm32h750b_dk to answer the #76297 |
4bfa791 to
5a24884
Compare
|
@FRASTM Is there any progress on that? I'm interested in support for RDP and WP for STM32H7 chips |
5956fa8 to
06e9555
Compare
|
Changed with common ex_op functions for stm32h7 and other series |
48d33e4 to
d2bb852
Compare
|
@benediktibk Thanks for the initial review on this. Would you mind resolving conversations on addressed points when you have some free cycles ? |
Done, but I was only able to comment on the reviews where they were done. As I am neither the PR owner nor have write access to the repo github won't let me resolve my own conversations :-| |
|
Can I somehow help to get this merged? :-) |
Place the flash_stm32_sem_take and flash_stm32_sem_give function to header file for common to use in any flash driver Signed-off-by: Francois Ramu <[email protected]>
Move the stm32 flash driver ex_op functions to common flash_stm32_ex_op.c file. Signed-off-by: Francois Ramu <[email protected]>
Implement the readout protection for the STM32H7 series. Define the specific functions used by the flash_stm32h7. Move the stm32h7 flash register manipulation in a write_optb() to be called by the flash_stm32_set_rdp_level. Signed-off-by: Francois Ramu <[email protected]>
|
|
Minor issue, but there are still the copy paste left-overs for the licensing, see my comments above. |
Sorry @benediktibk I cannot retrieve that, could you please point it ? |
|
The review comments are actually still open, they are about the *.overlay files in this PR. In there you still have SILA in the license information, probably a copy-paste leftover. |
Add the configuration to run the testcase with READOUT_PROTECTION (RDP) on stm32h7 disco kits Signed-off-by: Francois Ramu <[email protected]>
e655141
Ok I see, correcting |
tests/drivers/flash/stm32/boards/stm32h745i_disco_stm32h745xx_m7.overlay
Outdated
Show resolved
Hide resolved
| return rc; | ||
| } | ||
|
|
||
| regs->OPTCR = (regs->OPTCR & ~mask) | value; |
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.
Shouldn't OPTSR_PRG be used here? Sorry for late comment.
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.
@FRASTM ping :-)

following the #76097
This one is adding the READOUT protection (RDP) for the stm32h7 serie
Tested on the stm32h745i disco with tests/drivers/flash/stm32/ with CONFIG_FLASH_STM32_READOUT_PROTECTION=y