forked from Samsung/TizenRT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add HowToConfigureMemory doc and integrate the memory guide in …
…Porting_Guide HowToConfigureMemory doc has information about memory. HowToUseMultiHeap guide should be in HowToConfigureMemory doc.
- Loading branch information
1 parent
deb2237
commit 7cd6d32
Showing
2 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# How to configure Memory | ||
|
||
## Contents | ||
> [Configuration](#configuration) | ||
> [Linker Scripts](#linker-scripts) | ||
> [Multi-Heap Support](#multi-heap-support) | ||
## Configuration | ||
There are two configurations to configure memory, CONFIG_RAM_START and CONFIG_RAM_SIZE. | ||
Menuconfig helps to change them as shown below: | ||
``` | ||
cd $TIZENRT_BASEDIR | ||
cd os | ||
make menuconfig | ||
``` | ||
Find configs with following step: | ||
``` | ||
Hardware Configuration -> Chip selection -> Boot Memory Configuration | ||
``` | ||
Set CONFIG_RAM_START as hexa value and set CONFIG_RAM_SIZE as decimal value. | ||
``` | ||
CONFIG_RAM_START=0x02023800 | ||
CONFIG_RAM_SIZE=968704 | ||
``` | ||
Heap allocation will use these values for setting heap start and end address. | ||
|
||
## Linker Scripts | ||
Linker script has RAM start and size information also. | ||
file path : *build/configs/<BOARD_NAME>/scripts/<SCRIPTS_NAME>.ld* | ||
|
||
``` | ||
MEMORY | ||
{ | ||
... | ||
SRAM (rwx) : ORIGIN = 0x02023800, LENGTH = 946K | ||
... | ||
} | ||
``` | ||
These value should be matched with TizenRT configuration file. | ||
|
||
## Multi-Heap Support | ||
TizenRT can support multi-heap, if there is another RAM partition in H/W with discontinuous address to previous one. | ||
Please refer [How to use multiple memory map as a heap](HowToUseMultiHeap.md). | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters