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

cpu/stm32: disable MPU for cortex-m0+ (stm32g0 and stm32l052t8) #14823

Merged
merged 2 commits into from
Aug 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions cpu/stm32/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ config CPU_FAM_G0
select CPU_STM32
select CPU_CORE_CORTEX_M0PLUS
select HAS_CPU_STM32G0
select HAS_CORTEXM_MPU
select HAS_PERIPH_FLASHPAGE
select HAS_PERIPH_FLASHPAGE_RAW

Expand Down Expand Up @@ -307,7 +306,6 @@ config CPU_MODEL_STM32L031K6
config CPU_MODEL_STM32L052T8
bool
select CPU_FAM_L0
select HAS_CORTEXM_MPU
select HAS_PERIPH_HWRNG

config CPU_MODEL_STM32L053R8
Expand Down
7 changes: 4 additions & 3 deletions cpu/stm32/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ ifneq (,$(filter $(CPU_FAM),f2 f4 f7 g4 l0 l4 wb))
endif
endif

ifneq (,$(filter $(CPU_FAM),f2 f4 f7 g0 g4 l1 l4))
ifneq (,$(filter $(CPU_FAM),f2 f4 f7 g4 l1 l4))
FEATURES_PROVIDED += cortexm_mpu
endif

# only some stm32f3 and stm32l0 have an MPU
STM32_WITH_MPU += stm32f303re stm32f303vc stm32f303ze stm32l052t8
# only some stm32f3 have an MPU, stm32l052t8 provides an MPU but support is
# broken for cortex-m0+
STM32_WITH_MPU += stm32f303re stm32f303vc stm32f303ze
ifneq (,$(filter $(CPU_MODEL),$(STM32_WITH_MPU)))
FEATURES_PROVIDED += cortexm_mpu
endif
Expand Down