This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

请问如何指定Hwi_create等sysbios函数创建的实例的位置

Other Parts Discussed in Thread: SYSBIOS

您好,

我想知道是否可以指定Hwi_create,TSK_create等sysbios函数创建的实例的位置。

通过看TSK_handle,我发现所有创建出的实例都被放在".far"中。

即使我可以通过tsk_param指定它的栈的位置,但这个tsk的instance本身却不知道如何指定。

同样的问题还有HeapMem,例子如下:

我通过以下代码创建了一个HeapMem的实例,名为heapMem1

var heapMem1Params = new HeapMem.Params();
heapMem1Params.instance.name = "heapMem1";
heapMem1Params.align = 128;
heapMem1Params.size = 0x10000;
heapMem1Params.sectionName = "heapMem1";
Program.global.heapMem1 = HeapMem.create(heapMem1Params);

Program.sectMap["heapMem1"] = "L2SRAM";

我只能通过sectMap使heapMem1这个实例创建的堆放在L2SRAM,但是heapMem1本身却是在".far"上(默认在DDR3)。

有没有办法可以指定heapMem1本身的位置?(both dynamic and static)