TI中文支持网
TI专业的中文技术问题搜集分享网站

cmd中heap是在哪个段分配,段名是什么?

比如我要用

ping = (Uint16*)MEM_alloc(DDR2HEAP,sizeof(Uint16)*roLength,32);函数

红色参数应该怎么填,好像是要填heap的位置,ccs3.3,不用bios。

HG:

memory section managermem_alloc第一个参数指定的是内存分配的位置,其值与系统内存heap的定义相关。

Q: Why users are not allowed to call MEM functions (MEM_alloc, MEM_stat etc) from an HWI or SWI?

Memory management functions ( MEM_alloc(), MEM_stat(), MEM_free()) are blocking calls. This is because the functions require the caller to acquire a lock to the memory before proceeding. In case the MEM functions fail to get a lock to the memory, there is a context switch. A call to a SWI or HWI routine should be non-blocking in nature and hence TI recommends that customer should not call MEM functions inside a SWI or HWI. In case the user makes blocking calls (MEM calls) inside a SWI or HWI, the behavior is not guaranteed. Making any blocking calls from a HWI or SWI can affect the real time response of the system.

赞(0)
未经允许不得转载:TI中文支持网 » cmd中heap是在哪个段分配,段名是什么?
分享到: 更多 (0)