Fix much replicated typo. STM32 F4 SRAM is CCM, not TCM
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4571 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
9d6d4f373a
commit
dae1eef23b
@ -38,7 +38,7 @@
|
||||
*
|
||||
* 1) 112Kb of SRAM beginning at address 0x2000:0000
|
||||
* 2) 16Kb of SRAM beginning at address 0x2001:c000
|
||||
* 3) 64Kb of TCM SRAM beginning at address 0x1000:0000
|
||||
* 3) 64Kb of CCM SRAM beginning at address 0x1000:0000
|
||||
*
|
||||
* When booting from FLASH, FLASH memory is aliased to address 0x0000:0000
|
||||
* where the code expects to begin execution by jumping to the entry point in
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* 1) 112Kb of SRAM beginning at address 0x2000:0000
|
||||
* 2) 16Kb of SRAM beginning at address 0x2001:c000
|
||||
* 3) 64Kb of TCM SRAM beginning at address 0x1000:0000
|
||||
* 3) 64Kb of CCM SRAM beginning at address 0x1000:0000
|
||||
*
|
||||
* When booting from FLASH, FLASH memory is aliased to address 0x0000:0000
|
||||
* where the code expects to begin execution by jumping to the entry point in
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* 1) 112Kb of SRAM beginning at address 0x2000:0000
|
||||
* 2) 16Kb of SRAM beginning at address 0x2001:c000
|
||||
* 3) 64Kb of TCM SRAM beginning at address 0x1000:0000
|
||||
* 3) 64Kb of CCM SRAM beginning at address 0x1000:0000
|
||||
*
|
||||
* When booting from FLASH, FLASH memory is aliased to address 0x0000:0000
|
||||
* where the code expects to begin execution by jumping to the entry point in
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* 1) 112Kb of SRAM beginning at address 0x2000:0000
|
||||
* 2) 16Kb of SRAM beginning at address 0x2001:c000
|
||||
* 3) 64Kb of TCM SRAM beginning at address 0x1000:0000
|
||||
* 3) 64Kb of CCM SRAM beginning at address 0x1000:0000
|
||||
*
|
||||
* When booting from FLASH, FLASH memory is aliased to address 0x0000:0000
|
||||
* where the code expects to begin execution by jumping to the entry point in
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* 1) 112Kb of SRAM beginning at address 0x2000:0000
|
||||
* 2) 16Kb of SRAM beginning at address 0x2001:c000
|
||||
* 3) 64Kb of TCM SRAM beginning at address 0x1000:0000
|
||||
* 3) 64Kb of CCM SRAM beginning at address 0x1000:0000
|
||||
*
|
||||
* When booting from FLASH, FLASH memory is aliased to address 0x0000:0000
|
||||
* where the code expects to begin execution by jumping to the entry point in
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* 1) 112Kb of SRAM beginning at address 0x2000:0000
|
||||
* 2) 16Kb of SRAM beginning at address 0x2001:c000
|
||||
* 3) 64Kb of TCM SRAM beginning at address 0x1000:0000
|
||||
* 3) 64Kb of CCM SRAM beginning at address 0x1000:0000
|
||||
*
|
||||
* When booting from FLASH, FLASH memory is aliased to address 0x0000:0000
|
||||
* where the code expects to begin execution by jumping to the entry point in
|
||||
|
@ -456,11 +456,11 @@ The on-board SRAM can be configured by setting
|
||||
Configuration Options
|
||||
---------------------
|
||||
Internal SRAM is available in all members of the STM32 family. The F4 family
|
||||
also contains internal TCM SRAM. This SRAM is different because it cannot
|
||||
also contains internal CCM SRAM. This SRAM is different because it cannot
|
||||
be used for DMA. So if DMA needed, then the following should be defined
|
||||
to exclude TCM SRAM from the heap:
|
||||
to exclude CCM SRAM from the heap:
|
||||
|
||||
CONFIG_STM32_TCMEXCLUDE : Exclude TCM SRAM from the HEAP
|
||||
CONFIG_STM32_CCMEXCLUDE : Exclude CCM SRAM from the HEAP
|
||||
|
||||
In addition to internal SRAM, SRAM may also be available through the FSMC.
|
||||
In order to use FSMC SRAM, the following additional things need to be
|
||||
@ -483,19 +483,19 @@ There are 4 possible SRAM configurations:
|
||||
Configuration 1. System SRAM (only)
|
||||
CONFIG_MM_REGIONS == 1
|
||||
CONFIG_STM32_FSMC_SRAM NOT defined
|
||||
CONFIG_STM32_TCMEXCLUDE defined
|
||||
Configuration 2. System SRAM and TCM SRAM
|
||||
CONFIG_STM32_CCMEXCLUDE defined
|
||||
Configuration 2. System SRAM and CCM SRAM
|
||||
CONFIG_MM_REGIONS == 2
|
||||
CONFIG_STM32_FSMC_SRAM NOT defined
|
||||
CONFIG_STM32_TCMEXCLUDE NOT defined
|
||||
CONFIG_STM32_CCMEXCLUDE NOT defined
|
||||
Configuration 3. System SRAM and FSMC SRAM
|
||||
CONFIG_MM_REGIONS == 2
|
||||
CONFIG_STM32_FSMC_SRAM defined
|
||||
CONFIG_STM32_TCMEXCLUDE defined
|
||||
Configuration 4. System SRAM, TCM SRAM, and FSMC SRAM
|
||||
CONFIG_STM32_CCMEXCLUDE defined
|
||||
Configuration 4. System SRAM, CCM SRAM, and FSMC SRAM
|
||||
CONFIG_MM_REGIONS == 3
|
||||
CONFIG_STM32_FSMC_SRAM defined
|
||||
CONFIG_STM32_TCMEXCLUDE NOT defined
|
||||
CONFIG_STM32_CCMEXCLUDE NOT defined
|
||||
|
||||
STM3240G-EVAL-specific Configuration Options
|
||||
============================================
|
||||
@ -554,7 +554,7 @@ STM3240G-EVAL-specific Configuration Options
|
||||
|
||||
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)
|
||||
|
||||
CONFIG_STM32_TCMEXCLUDE - Exclude TCM SRAM from the HEAP
|
||||
CONFIG_STM32_CCMEXCLUDE - Exclude CCM SRAM from the HEAP
|
||||
|
||||
In addition to internal SRAM, SRAM may also be available through the FSMC.
|
||||
In order to use FSMC SRAM, the following additional things need to be
|
||||
@ -948,9 +948,9 @@ Where <subdir> is one of the following:
|
||||
|
||||
4. In order to use SDIO without overruns, DMA must be used. The STM32 F4
|
||||
has 192Kb of SRAM in two banks: 112Kb of "system" SRAM located at
|
||||
0x2000:0000 and 64Kb of "TCM" SRAM located at 0x1000:0000. It appears
|
||||
that you cannot perform DMA from TCM SRAM. The work around that I have now
|
||||
is simply to omit the 64Kb of TCM SRAM from the heap so that all memory is
|
||||
0x2000:0000 and 64Kb of "CCM" SRAM located at 0x1000:0000. It appears
|
||||
that you cannot perform DMA from CCM SRAM. The work around that I have now
|
||||
is simply to omit the 64Kb of CCM SRAM from the heap so that all memory is
|
||||
allocated from System SRAM. This is done by setting:
|
||||
|
||||
CONFIG_MM_REGIONS=1
|
||||
|
@ -121,10 +121,10 @@ CONFIG_STM32_JTAG_NOJNTRST_ENABLE=n
|
||||
CONFIG_STM32_JTAG_SW_ENABLE=n
|
||||
|
||||
#
|
||||
# On-chip TCM SRAM configuration
|
||||
# On-chip CCM 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
|
||||
# CONFIG_STM32_CCMEXCLUDE - Exclude CCM SRAM from the HEAP. You would need
|
||||
# to do this if DMA is enabled to prevent non-DMA-able CCM memory from
|
||||
# being a part of the stack.
|
||||
#
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* 1) 112Kb of SRAM beginning at address 0x2000:0000
|
||||
* 2) 16Kb of SRAM beginning at address 0x2001:c000
|
||||
* 3) 64Kb of TCM SRAM beginning at address 0x1000:0000
|
||||
* 3) 64Kb of CCM SRAM beginning at address 0x1000:0000
|
||||
*
|
||||
* When booting from FLASH, FLASH memory is aliased to address 0x0000:0000
|
||||
* where the code expects to begin execution by jumping to the entry point in
|
||||
|
@ -121,10 +121,10 @@ CONFIG_STM32_JTAG_NOJNTRST_ENABLE=n
|
||||
CONFIG_STM32_JTAG_SW_ENABLE=n
|
||||
|
||||
#
|
||||
# On-chip TCM SRAM configuration
|
||||
# On-chip CCM 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
|
||||
# CONFIG_STM32_CCMEXCLUDE - Exclude CCM SRAM from the HEAP. You would need
|
||||
# to do this if DMA is enabled to prevent non-DMA-able CCM memory from
|
||||
# being a part of the stack.
|
||||
#
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* 1) 112Kb of SRAM beginning at address 0x2000:0000
|
||||
* 2) 16Kb of SRAM beginning at address 0x2001:c000
|
||||
* 3) 64Kb of TCM SRAM beginning at address 0x1000:0000
|
||||
* 3) 64Kb of CCM SRAM beginning at address 0x1000:0000
|
||||
*
|
||||
* When booting from FLASH, FLASH memory is aliased to address 0x0000:0000
|
||||
* where the code expects to begin execution by jumping to the entry point in
|
||||
|
@ -121,10 +121,10 @@ CONFIG_STM32_JTAG_NOJNTRST_ENABLE=n
|
||||
CONFIG_STM32_JTAG_SW_ENABLE=n
|
||||
|
||||
#
|
||||
# On-chip TCM SRAM configuration
|
||||
# On-chip CCM 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
|
||||
# CONFIG_STM32_CCMEXCLUDE - Exclude CCM SRAM from the HEAP. You would need
|
||||
# to do this if DMA is enabled to prevent non-DMA-able CCM memory from
|
||||
# being a part of the stack.
|
||||
#
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* 1) 112Kb of SRAM beginning at address 0x2000:0000
|
||||
* 2) 16Kb of SRAM beginning at address 0x2001:c000
|
||||
* 3) 64Kb of TCM SRAM beginning at address 0x1000:0000
|
||||
* 3) 64Kb of CCM SRAM beginning at address 0x1000:0000
|
||||
*
|
||||
* When booting from FLASH, FLASH memory is aliased to address 0x0000:0000
|
||||
* where the code expects to begin execution by jumping to the entry point in
|
||||
|
@ -121,13 +121,13 @@ CONFIG_STM32_JTAG_NOJNTRST_ENABLE=n
|
||||
CONFIG_STM32_JTAG_SW_ENABLE=n
|
||||
|
||||
#
|
||||
# On-chip TCM SRAM configuration
|
||||
# On-chip CCM 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
|
||||
# CONFIG_STM32_CCMEXCLUDE - Exclude CCM SRAM from the HEAP. You would need
|
||||
# to do this if DMA is enabled to prevent non-DMA-able CCM memory from
|
||||
# being a part of the stack.
|
||||
#
|
||||
CONFIG_STM32_TCMEXCLUDE=y
|
||||
CONFIG_STM32_CCMEXCLUDE=y
|
||||
|
||||
#
|
||||
# On-board FSMC SRAM configuration
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* 1) 112Kb of SRAM beginning at address 0x2000:0000
|
||||
* 2) 16Kb of SRAM beginning at address 0x2001:c000
|
||||
* 3) 64Kb of TCM SRAM beginning at address 0x1000:0000
|
||||
* 3) 64Kb of CCM SRAM beginning at address 0x1000:0000
|
||||
*
|
||||
* When booting from FLASH, FLASH memory is aliased to address 0x0000:0000
|
||||
* where the code expects to begin execution by jumping to the entry point in
|
||||
|
@ -121,10 +121,10 @@ CONFIG_STM32_JTAG_NOJNTRST_ENABLE=n
|
||||
CONFIG_STM32_JTAG_SW_ENABLE=n
|
||||
|
||||
#
|
||||
# On-chip TCM SRAM configuration
|
||||
# On-chip CCM 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
|
||||
# CONFIG_STM32_CCMEXCLUDE - Exclude CCM SRAM from the HEAP. You would need
|
||||
# to do this if DMA is enabled to prevent non-DMA-able CCM memory from
|
||||
# being a part of the stack.
|
||||
#
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* 1) 112Kb of SRAM beginning at address 0x2000:0000
|
||||
* 2) 16Kb of SRAM beginning at address 0x2001:c000
|
||||
* 3) 64Kb of TCM SRAM beginning at address 0x1000:0000
|
||||
* 3) 64Kb of CCM SRAM beginning at address 0x1000:0000
|
||||
*
|
||||
* When booting from FLASH, FLASH memory is aliased to address 0x0000:0000
|
||||
* where the code expects to begin execution by jumping to the entry point in
|
||||
|
@ -121,10 +121,10 @@ CONFIG_STM32_JTAG_NOJNTRST_ENABLE=n
|
||||
CONFIG_STM32_JTAG_SW_ENABLE=n
|
||||
|
||||
#
|
||||
# On-chip TCM SRAM configuration
|
||||
# On-chip CCM 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
|
||||
# CONFIG_STM32_CCMEXCLUDE - Exclude CCM SRAM from the HEAP. You would need
|
||||
# to do this if DMA is enabled to prevent non-DMA-able CCM memory from
|
||||
# being a part of the stack.
|
||||
#
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* 1) 112Kb of SRAM beginning at address 0x2000:0000
|
||||
* 2) 16Kb of SRAM beginning at address 0x2001:c000
|
||||
* 3) 64Kb of TCM SRAM beginning at address 0x1000:0000
|
||||
* 3) 64Kb of CCM SRAM beginning at address 0x1000:0000
|
||||
*
|
||||
* When booting from FLASH, FLASH memory is aliased to address 0x0000:0000
|
||||
* where the code expects to begin execution by jumping to the entry point in
|
||||
|
@ -432,11 +432,11 @@ reference in case you choose to add some.
|
||||
Configuration Options
|
||||
---------------------
|
||||
Internal SRAM is available in all members of the STM32 family. The F4 family
|
||||
also contains internal TCM SRAM. This SRAM is different because it cannot
|
||||
also contains internal CCM SRAM. This SRAM is different because it cannot
|
||||
be used for DMA. So if DMA needed, then the following should be defined
|
||||
to exclude TCM SRAM from the heap:
|
||||
to exclude CCM SRAM from the heap:
|
||||
|
||||
CONFIG_STM32_TCMEXCLUDE : Exclude TCM SRAM from the HEAP
|
||||
CONFIG_STM32_CCMEXCLUDE : Exclude CCM SRAM from the HEAP
|
||||
|
||||
In addition to internal SRAM, SRAM may also be available through the FSMC.
|
||||
In order to use FSMC SRAM, the following additional things need to be
|
||||
@ -459,19 +459,19 @@ There are 4 possible SRAM configurations:
|
||||
Configuration 1. System SRAM (only)
|
||||
CONFIG_MM_REGIONS == 1
|
||||
CONFIG_STM32_FSMC_SRAM NOT defined
|
||||
CONFIG_STM32_TCMEXCLUDE defined
|
||||
Configuration 2. System SRAM and TCM SRAM
|
||||
CONFIG_STM32_CCMEXCLUDE defined
|
||||
Configuration 2. System SRAM and CCM SRAM
|
||||
CONFIG_MM_REGIONS == 2
|
||||
CONFIG_STM32_FSMC_SRAM NOT defined
|
||||
CONFIG_STM32_TCMEXCLUDE NOT defined
|
||||
CONFIG_STM32_CCMEXCLUDE NOT defined
|
||||
Configuration 3. System SRAM and FSMC SRAM
|
||||
CONFIG_MM_REGIONS == 2
|
||||
CONFIG_STM32_FSMC_SRAM defined
|
||||
CONFIG_STM32_TCMEXCLUDE defined
|
||||
Configuration 4. System SRAM, TCM SRAM, and FSMC SRAM
|
||||
CONFIG_STM32_CCMEXCLUDE defined
|
||||
Configuration 4. System SRAM, CCM SRAM, and FSMC SRAM
|
||||
CONFIG_MM_REGIONS == 3
|
||||
CONFIG_STM32_FSMC_SRAM defined
|
||||
CONFIG_STM32_TCMEXCLUDE NOT defined
|
||||
CONFIG_STM32_CCMEXCLUDE NOT defined
|
||||
|
||||
Configuration Changes
|
||||
---------------------
|
||||
@ -557,7 +557,7 @@ STM32F4Discovery-specific Configuration Options
|
||||
|
||||
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)
|
||||
|
||||
CONFIG_STM32_TCMEXCLUDE - Exclude TCM SRAM from the HEAP
|
||||
CONFIG_STM32_CCMEXCLUDE - Exclude CCM SRAM from the HEAP
|
||||
|
||||
In addition to internal SRAM, SRAM may also be available through the FSMC.
|
||||
In order to use FSMC SRAM, the following additional things need to be
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* 1) 112Kb of SRAM beginning at address 0x2000:0000
|
||||
* 2) 16Kb of SRAM beginning at address 0x2001:c000
|
||||
* 3) 64Kb of TCM SRAM beginning at address 0x1000:0000
|
||||
* 3) 64Kb of CCM SRAM beginning at address 0x1000:0000
|
||||
*
|
||||
* When booting from FLASH, FLASH memory is aliased to address 0x0000:0000
|
||||
* where the code expects to begin execution by jumping to the entry point in
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* 1) 112Kb of SRAM beginning at address 0x2000:0000
|
||||
* 2) 16Kb of SRAM beginning at address 0x2001:c000
|
||||
* 3) 64Kb of TCM SRAM beginning at address 0x1000:0000
|
||||
* 3) 64Kb of CCM SRAM beginning at address 0x1000:0000
|
||||
*
|
||||
* When booting from FLASH, FLASH memory is aliased to address 0x0000:0000
|
||||
* where the code expects to begin execution by jumping to the entry point in
|
||||
|
Loading…
Reference in New Issue
Block a user