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.

RTOS/TMS320F28379D: Memory allocation that gets automatically freed if task aborted

Part Number: TMS320F28379D
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hi,

Is there any SYS/BIOS function to allocate memory in the heap (like malloc(...)) that, in case the task where it has been allocated gets aborted, this dynamic memory gets automatically freed?

I have taken a look at xdc.runtime.Memory, ti.sysbios.heaps.HeapMem and ti.sysbios.heaps.HeapBuf modules. But I am not sure if any of them (or maybe another module I haven't still checked) does what I am looking for.

Thanks in advance!

Best regards,

Adria