Part Number: TMS320C6657
Tool/software: TI-RTOS
We are using the C6657 chip in our custom board. Our application written in C++ as to be run on both cores. each one of the cores is is running seperatly with no connection to the other core.
The code (for both cores) are running from the external DDR memory. My questions are regrding the heap and stack for each core.
1) II would like to create a two custom heaps mem for each core using HeapMem.Create. How do I call new and delete on these custom heaps?. Memory_alloc is good for buffers (sized in bytes) but i need to allocate and free complex objects. these objects types are defines as C++ classes.
In other words I would like to do:
MyClass* p = new MyClass; Were the a allocating is done from the proper custom heap mem.
2) Regarding the stack, I would like that each of the core will have is own stack memory. How to set these stack objects in the cfg file?
all the heaps and stacks memory regions should be placed in the DDR memory as well.
Thanks you
Eyal