Open
Conversation
a5a0c7b to
875ea06
Compare
Contributor
Author
|
Looks like the Microbit build is failing. I guess that is not V2, ie not Cortex M4, and is instead an M0 and so doesn't have MPU support. But that's just a guess. |
jklmnn
requested changes
Apr 14, 2026
Comment on lines
+32
to
+40
| -- This package provides subprograms to configure the Memory Protection | ||
| -- Unit (MPU) on the Cortex-M7 family of CPU. | ||
| -- | ||
| -- On Cortex-M7, the MPU is required when the D-cache is enabled in order | ||
| -- to prevent speculative reads from causing bus contention on external | ||
| -- memory interfaces (e.g., FMC/SDRAM). Without MPU configuration, the | ||
| -- default memory map treats all external memory as Normal, allowing the | ||
| -- CPU to issue speculative reads that can starve bus masters such as the | ||
| -- LTDC display controller. |
Member
There was a problem hiding this comment.
As this is specific to the Cortex-M7 I suggest to move the file to arch/ARM/cortex_m/src/cm7. This should also fix the build failure. The failure is caused by the builds using Cortex-M0 failing as they pull this unit but don't provide an SVD for that.
If that unit is supposed to work on other Cortex-M I suggest to add the MPU SVD for Cortex-M0. According to the documentation I could find the M0 should also come with an MPU.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note that when used this will fix the LTDC "slew" problem too.