diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-02-27 23:14:43 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-02-27 23:14:43 +0000 |
commit | a103801be3696e5e296766dd70d3d4774283c256 (patch) | |
tree | 8b2ab04f54b1d0a6eb83abb6de034c94db79ae4d /nuttx/configs/stm3240g-eval/nsh2 | |
parent | e4968d3556b862b4bdf950f6d70516fce710dfe1 (diff) | |
download | px4-nuttx-a103801be3696e5e296766dd70d3d4774283c256.tar.gz px4-nuttx-a103801be3696e5e296766dd70d3d4774283c256.tar.bz2 px4-nuttx-a103801be3696e5e296766dd70d3d4774283c256.zip |
Add logic to support the FSMC SRAM in the NuttX heap
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4433 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3240g-eval/nsh2')
-rw-r--r-- | nuttx/configs/stm3240g-eval/nsh2/defconfig | 24 | ||||
-rwxr-xr-x | nuttx/configs/stm3240g-eval/nsh2/setenv.sh | 8 |
2 files changed, 29 insertions, 3 deletions
diff --git a/nuttx/configs/stm3240g-eval/nsh2/defconfig b/nuttx/configs/stm3240g-eval/nsh2/defconfig index c2425a0ee..4a7d22042 100644 --- a/nuttx/configs/stm3240g-eval/nsh2/defconfig +++ b/nuttx/configs/stm3240g-eval/nsh2/defconfig @@ -121,6 +121,30 @@ CONFIG_STM32_JTAG_NOJNTRST_ENABLE=n CONFIG_STM32_JTAG_SW_ENABLE=n # +# On-chip TCM SRAM configuration +# +# CONFIG_STM32_TCMEXCLUDE - Exclude TCM SRAM from the HEAP. You would need +# to do this if DMA is enabled to prevent non-DMA-able TCM memory from +# being a part of the stack. +# +CONFIG_STM32_TCMEXCLUDE=y + +# +# On-board FSMC SRAM configuration +# +# CONFIG_STM32_FSMC - Required. See below +# CONFIG_MM_REGIONS - Required. Must be 2 or 3 (see above) +# +# CONFIG_STM32_FSMC_SRAM=y - Indicates that SRAM is available via the +# FSMC (as opposed to an LCD or FLASH). +# CONFIG_HEAP2_BASE - The base address of the SRAM in the FSMC address space +# CONFIG_HEAP2_END - The end (+1) of the SRAM in the FSMC address space +# +CONFIG_STM32_FSMC_SRAM=y +CONFIG_HEAP2_BASE=0x64000000 +CONFIG_HEAP2_END=(0x64000000+(2*1024*1024)) + +# # Individual subsystems can be enabled: # # Individual subsystems can be enabled: diff --git a/nuttx/configs/stm3240g-eval/nsh2/setenv.sh b/nuttx/configs/stm3240g-eval/nsh2/setenv.sh index 4604aa72e..944f77734 100755 --- a/nuttx/configs/stm3240g-eval/nsh2/setenv.sh +++ b/nuttx/configs/stm3240g-eval/nsh2/setenv.sh @@ -59,9 +59,11 @@ export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ # These are the Cygwin paths to the locations where I installed the Atollic # toolchain under windows. You will also have to edit this if you install -# the CodeSourcery toolchain in any other location -#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin" -#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin" +# the Atollic toolchain in any other location. /usr/bin is added before +# the Atollic bin path because there is are binaries named gcc.exe and g++.exe +# at those locations as well. +#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin" +#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin" # This the Cygwin path to the location where I build the buildroot # toolchain. |