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

MPU initialization refactoring #3394

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

cepetr
Copy link
Contributor

@cepetr cepetr commented Nov 7, 2023

I've refactored MPU initialization routine to be more clear and maintainable. Now it's just a draft for further discussion.

Copy link
Contributor

@TychoVrahe TychoVrahe left a comment

Choose a reason for hiding this comment

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

Couple clarifications for the problems discovered during refactoring below.

Note that the region sizes will need adjustments for final MCU variants (U585 and U5Gx likely).

core/embed/trezorhal/stm32u5/mpu.c Outdated Show resolved Hide resolved
core/embed/trezorhal/stm32u5/mpu.c Outdated Show resolved Hide resolved
core/embed/trezorhal/stm32u5/mpu.c Outdated Show resolved Hide resolved
core/embed/trezorhal/stm32u5/mpu.c Outdated Show resolved Hide resolved
core/embed/trezorhal/stm32u5/mpu.c Outdated Show resolved Hide resolved
Copy link
Contributor

@TychoVrahe TychoVrahe left a comment

Choose a reason for hiding this comment

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

lgtm, please fix the residual style issues, squash and add [no changelog] to the commit message

@TychoVrahe TychoVrahe merged commit 05a982b into tychovrahe/u5/basic_support Nov 15, 2023
7 of 9 checks passed
@TychoVrahe TychoVrahe deleted the cepetr/u5/mpu-refactor branch November 15, 2023 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants