NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
DA8xx Memory Customization
Contents
Introduction[edit]
This is the page which describes Memory customization in PA/F. Some people need more heap area the others are need more static IRAM area. Here is the recipe of how to customize memory size of each area to fit your system.
Procedure[edit]
Editing T:/pa/cust/vender/c999/d1/config.bld[edit]
- This file specifies memory area (name, base address, length and space attribute). Note that space just specifies, "code", "data" or "code/data". To set heap, you should use pa.cfg. Heap area is created in the memory area specified here.
- Ex. If memory[4] length is 0x10000 and heap in memory[4] is 0xC000, static area in memory[4] is 0x4000.
memory[0] = ... Do not change
memory[1] = ... Do not change
memory[2] = ... Do not change
memory[3] = ... Do not change
memory[4] = ... IRAM area. code/data and heap.
Heap size is set in pa.cfg
memory[5] = ... L3RAM area. code/data and heap.
Heap size is set in pa.cfg
memory[6] = ... Do not change
memory[7] = ... Do not change
memory[8] = ... SDRAM area.code/data and heap.
Heap size is set in pa.cfg
memory[9] = ... SDRAM_LINK_SHARED. To change here
you should also change
"Program.loadFixedDataAddr" in pa.cfg
"#define RESETCTRLADDR" in dsplink/config/all/CFG_DA8XXGEM_SHMEM.c
Build.platformTable[... //Do not change
Editing T:/pa/cust/vender/c999/d1/pa.cfg[edit]
- To change the size of heap, you should modify this file. Heap is created in the memory area which is specified in config.bld as described before.
//specify the heap size of IRAM, L3RAM and SDRAM area
// configure IRAM memory section
bios.IRAM = bios.MEM.create("IRAM");
bios.IRAM.createHeap = 1;
bios.IRAM.heapSize = 156*1024;
// ~39 KB currently used: DIB scratch buffer, audio frame buffer, Dolby delay
bios.IRAM.space = "code/data";
bios.IRAM["heapLabel"] = "IRAM";
// create SDRAM section
bios.SDRAM = bios.MEM.create("SDRAM");
bios.SDRAM.createHeap = 1;
bios.SDRAM.heapSize = 832*1024+(18*1024);
bios.SDRAM.space = "data";
bios.SDRAM["heapLabel"] = "SDRAM";
// create L3RAM section
bios.L3RAM = bios.MEM.create("L3RAM");
bios.L3RAM.createHeap = 1;
bios.L3RAM.heapSize = 34*1024;
bios.L3RAM.space = "data";
bios.L3RAM["heapLabel"] = "L3RAM";
Memory Map[edit]
- Here is the default chart of memory map, to understand how each memory area is used. Basically, DSP uses IRAM while SDRAM is shared by ARM and DSP. This is an example of ARM+DSP device but if you use DSP only device, you can use all area for DSP.

