-
Notifications
You must be signed in to change notification settings - Fork 3k
PSA: PSoc 6 configurable secure memory size #10034
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
PSA: PSoc 6 configurable secure memory size #10034
Conversation
@ARMmbed/mbed-os-psa Is this targeting 5.12rc2 ? |
rc3 |
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.
if one of the PSA macros is missing this is an error
targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_WIFI_BT_M0_PSA/cyprotection_config.h
Outdated
Show resolved
Hide resolved
targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CY8CKIT_062_WIFI_BT_M0_PSA/cyprotection_config.h
Outdated
Show resolved
Hide resolved
Also please add alignment check with static assert |
@ARMmbed/team-cypress does the PSoC6 has any alignment requirement for flash and ram split between the cores? |
794801c
to
b28fea3
Compare
Flash must be on a 512k boundary, not overlapping between cores. No specific requirements for SRAM. |
Flash and RAM start addresses of protected areas have to be aligned to a number dividable by the protected area size. To use unaligned regions - subregion field is used. It is quite complex algo to do it automatically. |
@OlegKapshii
|
… non secure default region sizes
b28fea3
to
c87d5d4
Compare
@orenc17 It would be great to have such assert. |
Is it reasonable to add all possible region sizes conversion in the if sequence? |
@evgenibo i think @OlegKapshii request is acceptable, |
@evgenibo Would anything bad happen if this was retargeted to 5.12.1? As is, this PR doesn't seem critical enough for RC3. |
Or does it fall in this bucket? #10055 (comment) |
This is critical to run client application on this board and has the same significance as #10055 |
Still waiting on #10034 (comment) to be addressed before starting CI |
Finish memory protection and add static assert
Was this addressed by latest push? |
there is another change required for kvstore config i've showed @evgenibo where the fix should be |
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 can confirm the PSA tests pass on the board with the changes
CI started |
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.
LGTM
Test run: SUCCESSSummary: 13 of 13 test jobs passed |
Description
SRAM size can be configured to 64K or 128K. 64K is a default value.
Pull request type
Reviewers
@ARMmbed/team-cypress @ARMmbed/mbed-os-psa
Release Notes