Skip to content

Embassy RP: RP235x Fix MPU region enablement in stack guard installation #4296

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adamNewell
Copy link

Updated the MPU region enablement logic in the install_stack_guard function to correctly set the region limit by using the stack bottom address plus 256 minus one, ensuring proper memory protection configuration.

Updated the MPU region enablement logic in the `install_stack_guard` function to correctly set the region limit by using the stack bottom address plus 256 minus one, ensuring proper memory protection configuration.

See Table 235. MPU_RLAR Register in RP2350 documentation
See Section 4.5 MPU_RLAR in armv8m MPU documentation
@adamNewell adamNewell force-pushed the fix-rp2350-stack-guard-rlar branch from 703904a to 358a0cd Compare June 10, 2025 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant