Skip to content

Hotfix/mpu config#552

Merged
jorgesg82 merged 2 commits intodevelopmentfrom
hotfix/MPU-config
Jan 25, 2026
Merged

Hotfix/mpu config#552
jorgesg82 merged 2 commits intodevelopmentfrom
hotfix/MPU-config

Conversation

@FoniksFox
Copy link
Copy Markdown
Contributor

Was using a configuration that caused undefined behaviour for flash, now using the correct one.

Check this application note

Copilot AI review requested due to automatic review settings January 25, 2026 00:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts MPU region attributes to use a flash configuration that avoids undefined behavior and aligns with ST’s recommended settings, and clarifies/aligns comments and attributes for various memory regions.

Changes:

  • Updated the flash MPU region to use TEX=0, C=1, B=0 (Normal, write-through, no read-allocate) and kept it non-shareable for full caching, matching ST’s documented configuration.
  • Documented and configured the dynamic MPU region as Normal, non-cacheable, shareable memory for multi-master access.
  • Updated MPU attributes and comments for ITCM, DTCM, and D1/D2/D3 RAM regions, including making cached AXI/SRAM regions shareable and clarifying TCM behavior versus MPU settings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jorgesg82 jorgesg82 merged commit c49f36d into development Jan 25, 2026
19 checks passed
@jdmarmen jdmarmen deleted the hotfix/MPU-config branch January 27, 2026 17: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.

4 participants