From c1e26065269b770e74882ece4f45622e226889ef Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 21 Dec 2016 12:49:03 -0600 Subject: [PATCH] Olimex STM32 P407: Has only 128KiB of contiguous RAM. Exclude CCM memory for now. --- configs/olimex-stm32-p407/README.txt | 19 ++++++++++++++----- configs/olimex-stm32-p407/nsh/defconfig | 6 +++--- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/configs/olimex-stm32-p407/README.txt b/configs/olimex-stm32-p407/README.txt index ec347742d9..7ddf756213 100644 --- a/configs/olimex-stm32-p407/README.txt +++ b/configs/olimex-stm32-p407/README.txt @@ -1,8 +1,11 @@ README ====== -The NuttX configuration for the Olimex STM32-P407 is derives more or -less directly from the Olimex STM32-P207 board support. +The NuttX configuration for the Olimex STM32-P407 is derives more or less +directly from the Olimex STM32-P207 board support. The P207 and P407 seem +to share the same board design. Other code comes from the STM3240G board +support (which has the same crystal and clocking) and from the STM32 F4 +Discovery (which has the same STM32 part) Note that CONFIG_STM32_DISABLE_IDLE_SLEEP_DURING_DEBUG is enabled so that the JTAG connection is not disconnected by the idle loop. @@ -31,6 +34,12 @@ The following peripherals are enabled in this configuration. STATUS: 2016-12-21: This board configuration was ported from the Olimex STM32 P207 - port. Note all of the above features have been verified. USB, AND, and - Ethernet are disabled in the base NSH configuration until they can be - verified. + port. Note that none of the above features have been verified. USB, CAN, + ADC, and Ethernet are disabled in the base NSH configuration until they + can be verified. These features should be functional but may required + some tweaks due to the different clock configurations. The Olimex STM32 + P207 nsh/defconfig would be a good starting place for restoring these + feature configurations. + + CCM memory is not included in the heap (CONFIG_STM32_CCMEXCLUDE=y) because + it does no suport DMA, leaving only 128KiB for program usage. diff --git a/configs/olimex-stm32-p407/nsh/defconfig b/configs/olimex-stm32-p407/nsh/defconfig index 9548253b14..21dacf69ce 100644 --- a/configs/olimex-stm32-p407/nsh/defconfig +++ b/configs/olimex-stm32-p407/nsh/defconfig @@ -437,7 +437,7 @@ CONFIG_STM32_JTAG_SW_ENABLE=y CONFIG_STM32_DISABLE_IDLE_SLEEP_DURING_DEBUG=y # CONFIG_STM32_FORCEPOWER is not set # CONFIG_ARCH_BOARD_STM32_CUSTOM_CLOCKCONFIG is not set -# CONFIG_STM32_CCMEXCLUDE is not set +CONFIG_STM32_CCMEXCLUDE=y # # Timer Configuration @@ -551,7 +551,7 @@ CONFIG_BOOT_RUNFROMFLASH=y # Boot Memory Configuration # CONFIG_RAM_START=0x20000000 -CONFIG_RAM_SIZE=196608 +CONFIG_RAM_SIZE=131072 # CONFIG_ARCH_HAVE_SDRAM is not set # @@ -880,7 +880,7 @@ CONFIG_FS_MQUEUE_MPATH="/var/mqueue" # Memory Management # # CONFIG_MM_SMALL is not set -CONFIG_MM_REGIONS=2 +CONFIG_MM_REGIONS=1 # CONFIG_ARCH_HAVE_HEAP2 is not set # CONFIG_GRAN is not set