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/TM4C1294NCPDT: How to realloc dynamic memory at run time

Part Number: TM4C1294NCPDT

Tool/software: TI-RTOS

If i used Memory_alloc for creating run time memory with size of 100 blocks, 

later in run time i want to reallocate or increase with 150 blocks, how could i do

in ccs tirtos. 

I am not finding syntax like realloc.

Thanks

Alagappan

  • Hi,

    You can use realloc. TI-RTOS supplies a thread-safe implementation of malloc/calloc/realloc/free. Once you use those functions, you can look in the mapfile to confirm there are being supplied by TI-RTOS (actually sys/bios) instead of the compiler.

    Todd