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

From Texas Instruments Wiki
Jump to: navigation, search

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.

MemoryMap.PNG

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article DA8xx Memory Customization here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article DA8xx Memory Customization here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article DA8xx Memory Customization here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article DA8xx Memory Customization here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article DA8xx Memory Customization here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article DA8xx Memory Customization here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article DA8xx Memory Customization here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article DA8xx Memory Customization here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article DA8xx Memory Customization here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity