From 19dcdbafc6cdb4d7d06c4017cce2ea7662e7009e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 21 Apr 2014 17:52:29 -0600 Subject: [PATCH] SAM4S Xplained Pro: Enable MPU. From Bob Doiron --- configs/sam4s-xplained-pro/TODO.txt | 9 +++++++++ configs/sam4s-xplained-pro/nsh/defconfig | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 configs/sam4s-xplained-pro/TODO.txt diff --git a/configs/sam4s-xplained-pro/TODO.txt b/configs/sam4s-xplained-pro/TODO.txt new file mode 100644 index 00000000000..03b1883822c --- /dev/null +++ b/configs/sam4s-xplained-pro/TODO.txt @@ -0,0 +1,9 @@ + + + - implement flash driver + - see arch/arm/src/stm32/stm32_flash.c and related + - both banks could be mapped with care taken not to erase the active code. + - perhaps the MPU could block code corruption? + + - once implemented, the free() cmd replacement can show flash information. + diff --git a/configs/sam4s-xplained-pro/nsh/defconfig b/configs/sam4s-xplained-pro/nsh/defconfig index 14dba27702e..12a4402b12a 100644 --- a/configs/sam4s-xplained-pro/nsh/defconfig +++ b/configs/sam4s-xplained-pro/nsh/defconfig @@ -124,7 +124,8 @@ CONFIG_ARCH_CHIP="sam34" # CONFIG_ARMV7M_USEBASEPRI is not set # CONFIG_ARCH_HAVE_FPU is not set CONFIG_ARCH_HAVE_MPU=y -# CONFIG_ARMV7M_MPU is not set +CONFIG_ARMV7M_MPU=y +CONFIG_ARMV7M_MPU_NREGIONS=8 # CONFIG_DEBUG_HARDFAULT is not set #