apache / apache/nuttx

ARMV7-M MPU base region not configured correctly

Open
#8,780 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

I made a protected build on NXP 1052 chip which uses the ARMV7-M MCU. The user region has a base address of 0x80800048 with a size of 0xd15620. The alignedbase is 0x80000000 because the l2size is 0x19. The system will crash shortly after I enable the MPU. When I decrease the size of the user, the alignedbase is 0x8080000 and the device runs normally. I don't think the calculation for the aligned base is correct for all situations. I'm using nuttx 10.2.0.

![1052_MPU](https://user-images.githubusercontent.com/88166609/224115175-3b6947f1-cc0a-424f-837a-d09e0d60a592.jpg)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.