I have a question about the heap memory managements in sysBios.
Generally, in sysBios, if I use HeapMem, I can use Memory_alloc and Memory_free to allocate and free memory. I just have to remember from which heap I allocated the memory and free it to where it came from -- what happens if I allocate a memory from HeapMem1 and return it to HeapMem2?
Now to HeapBuf. From SysBios user manual and online wiki, I could not find the API for HeapBuf or HeapMultiBuf alloc/free. Should I use teh same Memory_alloc and Memory_free -- as the handle types for HeapMem and HeapBuf are different. Do I also have to remember from which HeapBuf I allocated the memory and return to it when I free it?
thanks
Weichun