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

soc:arm:nxp_s32ze: Create MPU regions for separated code and data #80939

Conversation

mcc-terraline
Copy link

The NXP s32ze board configs and mpu regions associate all code and data with the SRAM 0/1/ext of the architecture. There are 7 MBs of SRAMs per RTU which are dedicated to code use. Using them for the Zephyr flash target trips the MPU regions which assume a RODATA/TEXT endpoint as the beginning of the DATA/BSS section. Update to use the Code SRAMs for code and associate the MPU region with the data image start location.

The NXP s32ze board configs and mpu regions associate all code and data
with the SRAM 0/1/ext of the architecture. There are 7 MBs of SRAMs
per RTU which are dedicated to code use. Using them for the Zephyr
flash target trips the MPU regions which assume a RODATA/TEXT endpoint
as the beginning of the DATA/BSS section. Update to use the Code SRAMs
for code and associate the MPU region with the data image start
location.

Signed-off-by: Matthew Christian <[email protected]>
@manuargue
Copy link
Member

manuargue commented Nov 7, 2024

Hi @mcc-terraline thanks for this contribution. Although your changes suggestion look good, NXP is working in a more comprehensive solution to allow executing Zephyr from CRAM through AXI-F read-only interface and using DRAM through AXI-M for data access. This relates to issue #60217 and it will allow to expand the SRAM memory available to Zephyr. We expect to have a pr opened soon, so I'd suggest to wait for this pr to be raised.

@mcc-terraline
Copy link
Author

Hi @mcc-terraline thanks for this contribution. Although your changes suggestion look good, NXP is working in a more comprehensive solution to allow executing Zephyr from CRAM through AXI-F read-only interface and using DRAM through AXI-M for data access. This relates to issue #60217 and it will allow to expand the SRAM memory available to Zephyr. We expect to have a pr opened soon, so I'd suggest to wait for this pr to be raised.

@manuargue, thank you, I'll follow that issue and close this PR.

@Dat-NguyenDuy
Copy link
Contributor

Hi @mcc-terraline, i have opened this PR: #81112, you can check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: NXP S32 NXP Semiconductors, S32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants