Creating Dynamic Objects and Threads in BIOS

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search

Contents

Introduction

Functions such as SEM_create(), TSK_create() and SWI_create() are used in DSP/BIOS for dynamically creating objects/threads. All of these *_create() functions ultimately depend on dynamic memory allocation. It is critical that you properly configure dynamic memory allocation in your tcf file in order for these functions to work.

Procedure

Allow Heaps

  • Open your tcf file in the configuration tool.
  • Right click on Memory Section Manager and go to Properties.
  • Uncheck the "No Dynamic Heaps" box if it is not already unchecked (bios.MEM.NOMEMORYHEAPS = 0;). Click OK to exit the dialog.




Create one or more heaps

  • Right-click on the memory section where you would like to create a heap, e.g. DDR2 and go to Properties.
  • Click the "Create a heap in this memory" box and enter the size (bios.MEM.instance("DDR2").createHeap = 1;). Click OK to exit the dialog.




Specify placement of DSP/BIOS objects

  • Right-click once again on Memory Section Manager and set the "Segment for DSP/BIOS Objects" to a valid section, e.g. DDR2 (bios.MEM.BIOSOBJSEG = prog.get("DDR2");.





For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Creating Dynamic Objects and Threads in BIOS here.
Leave a Comment
Personal tools