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

Custom memory layout for STM32-L4R5ZI #19

Merged
merged 4 commits into from
Oct 16, 2024
Merged

Conversation

jschneider-bensch
Copy link
Contributor

@jschneider-bensch jschneider-bensch commented Oct 15, 2024

We found out that, by default, the stack on L4R5ZI is linked into an insufficiently sized region of RAM. This leads to memory errors when the stack grows beyond that region. This PR makes us use a custom layout, which relocates the stack to a larger memory region.

The details of the memory layout for the L4R5ZI can be found in the reference manual on page 94.

@jschneider-bensch jschneider-bensch marked this pull request as ready for review October 15, 2024 14:59
Copy link
Member

@keks keks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's link the reason for having the custom linker script. Otherwise this looks good!

libcrux-nucleo-l4r5zi/memory.x Outdated Show resolved Hide resolved
@keks keks mentioned this pull request Oct 15, 2024
Copy link
Member

@keks keks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@jschneider-bensch jschneider-bensch merged commit 39ae1dc into main Oct 16, 2024
2 checks passed
@jschneider-bensch jschneider-bensch deleted the jonas/layout-stm32 branch October 16, 2024 07:33
@jschneider-bensch jschneider-bensch mentioned this pull request Nov 6, 2024
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.

2 participants