Skip to content

Turn off MPU for PSOC 6 #8952

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

Merged
merged 2 commits into from
Dec 4, 2018
Merged

Turn off MPU for PSOC 6 #8952

merged 2 commits into from
Dec 4, 2018

Conversation

c1728p9
Copy link
Contributor

@c1728p9 c1728p9 commented Dec 3, 2018

Description

Turn off the MPU for the PSOC 6 since it has a non-standard memory map. This fixes crashes on boot for this target.

fixes #8937

Pull request type

[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

@c1728p9 c1728p9 requested a review from alzix December 3, 2018 17:18
Copy link
Contributor

@alzix alzix left a comment

Choose a reason for hiding this comment

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

LGTM

"release_versions": ["5"],
"extra_labels": ["Cypress", "PSOC6"],
"public": false
},
"MCU_PSOC6_M0": {
"inherits": ["MCU_PSOC6"],
"core": "Cortex-M0+",
"macros": ["MCU_PSOC6_M0"],
"macros_add": ["MCU_PSOC6_M0"],
Copy link
Contributor

Choose a reason for hiding this comment

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

i think this one is not related to our MPU configuration, but clearly a necessary change!
Can you consider splitting it to separate commit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@alzix
Copy link
Contributor

alzix commented Dec 3, 2018

fixes #8937 - once merged will close the issue automatically

Use "macros_add" rather than "marcos" so any macros defined by
MCU_PSOC6 are not overwritten.
Turn off  the MPU for the PSOC 6 since it has a non-standard memory
map. This fixes crashes on boot for this target.
@cmonr
Copy link
Contributor

cmonr commented Dec 4, 2018

CI started

@mbed-ci
Copy link

mbed-ci commented Dec 4, 2018

Test run: SUCCESS

Summary: 4 of 4 test jobs passed
Build number : 1
Build artifacts
Build logs

@0xc0170 0xc0170 merged commit 3411e5e into ARMmbed:master Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FUTURE_SEQUANA target fails on MPU init
6 participants