Creating Dynamic Objects and Threads in BIOS

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

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

bios.MEM.NOMEMORYHEAPS = 0;
BIOS Dynamic1.png




Create one or more heaps

bios.MEM.instance("DDR2").createHeap = 1;
BIOS Dynamic2.png




Specify placement of DSP/BIOS objects

bios.MEM.BIOSOBJSEG = prog.get("DDR2");
bios.MEM.MALLOCSEG = prog.get("DDR2");
BIOS Dynamic3.png




Specify placement of dynamic tasks

bios.TSK.STACKSEG = prog.get("DDR");
BIOS Dynamic4.png
E2e.jpg 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.
Hyperlink blue.png Links
ARM Microcontroller MCU ARM Processor Digital Media Processor Digital Signal Processing Microcontroller MCU Multi Core Processor
Ultra Low Power DSP 8 bit Microcontroller MCU 16 bit Microcontroller MCU 32 bit Microcontroller MCU

Leave a Comment
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox