summaryrefslogtreecommitdiffstats
path: root/nuttx/configs/stm3240g-eval/telnetd
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-02-27 23:14:43 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-02-27 23:14:43 +0000
commit6cd4d1afd8b3f8adb72aca202f6f9c876d59ba5d (patch)
tree8b2ab04f54b1d0a6eb83abb6de034c94db79ae4d /nuttx/configs/stm3240g-eval/telnetd
parent2de2ff6b9761bd0c8cfe3d8b071a0af8277b8441 (diff)
Add logic to support the FSMC SRAM in the NuttX heap
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4433 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/configs/stm3240g-eval/telnetd')
-rw-r--r--nuttx/configs/stm3240g-eval/telnetd/defconfig23
-rwxr-xr-xnuttx/configs/stm3240g-eval/telnetd/setenv.sh8
2 files changed, 28 insertions, 3 deletions
diff --git a/nuttx/configs/stm3240g-eval/telnetd/defconfig b/nuttx/configs/stm3240g-eval/telnetd/defconfig
index 43a5b7c445..3380c187f1 100644
--- a/nuttx/configs/stm3240g-eval/telnetd/defconfig
+++ b/nuttx/configs/stm3240g-eval/telnetd/defconfig
@@ -121,6 +121,29 @@ 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.
+#
+
+#
+# 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/telnetd/setenv.sh b/nuttx/configs/stm3240g-eval/telnetd/setenv.sh
index 148a28d520..c022d1d9b8 100755
--- a/nuttx/configs/stm3240g-eval/telnetd/setenv.sh
+++ b/nuttx/configs/stm3240g-eval/telnetd/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.