-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fprotect rram basic support #15140
fprotect rram basic support #15140
Conversation
michalek-no
commented
Apr 30, 2024
•
edited
Loading
edited
- Requires [nrf fromlist] soc: nordic: RRAMC regions sdk-zephyr#1693
Test specificationCI/Jenkins/NRF
CI/Jenkins/integration
Detailed information of selected test modules Note: This message is automatically posted and updated by the CI |
@sigvartmh please take a look if we can do something about nonhomogeneous PM/noPM partition names |
You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds. Note: This comment is automatically posted by the Documentation Publishing GitHub Action. |
lib/fprotect/sys_init_fprotect.c
Outdated
#ifdef CONFIG_PARTITION_MANAGER_ENABLED | ||
#define CODE_PARTITION app | ||
#else | ||
#define CODE_PARTITION slot0_partition |
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.
Isn't DT_CHOSEN(zephyr_code_partition) more generic assignment?
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.
I wonder if we can somehow get rid of this if-else block entirely. It's here because PM.
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.
Unless we have PM and DTS for partitioning - not.
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.
Isn't DT_CHOSEN(zephyr_code_partition) more generic assignment?
needs some additional stuff - on it's way nrfconnect/sdk-zephyr#1705
9a2cd58
to
9ad6817
Compare
9ad6817
to
cbaf3a1
Compare
rebase |
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
lib/fprotect/fprotect_rram.c
Outdated
*/ | ||
return -EINVAL; | ||
} | ||
if (size <= REGION_SIZE_MAX) { |
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.
You should also check if RRAMC_REGION_FOR_FPROTECT is already in use. If it is, return -NOSPC
ea1dd36
to
858636f
Compare
858636f
to
0d5cc04
Compare
0d5cc04
to
a277213
Compare
4d9e1b6
to
d9f07a6
Compare
rebase |
5966ccf
to
688b529
Compare
rebase |
688b529
to
9f3a8e8
Compare
9f3a8e8
to
9ec2edd
Compare
3cebddb
to
4059f2a
Compare
rebase |
Introduces backend and adjusts configuration to add fprotect for nRF54L15. Signed-off-by: Mateusz Michalek <[email protected]>
Due to RRAMC region protection size limitations test is performed on single block of storage partition. Signed-off-by: Mateusz Michalek <[email protected]>
4059f2a
to
8f47730
Compare
rebase |
pulling 4k rramc resolution changes. Signed-off-by: Mateusz Michalek <[email protected]>
8f47730
to
deff1ad
Compare