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.

AWR2944: memory allocate function in R2944

Part Number: AWR2944

Tool/software:

Hi,

Please help to tell me what memory allocate function in R2944 can use to replace Memory_alloc() in R1843?

My SDK is mmwave_mcuplus_sdk_04_06_00_00_01.

malloc() or 

HeapP_alloc() or
MemoryP_ctrlAlloc() or
Thanks,
Bolong
  • Hello,

    For now try HeapP_alloc() for a replacement as it provides similar functionality with heap control. It is good for general purpose allocations. Ensure that the heap is configured properly as well. 

    Best,

    Gabriel

  • Hi,

    Thanks for your reply.

    Can you help me to what is different to use MemoryP_xx and Heap_xx?

    it looks very similar to me.

    Regards,

    Bolong

  • Hi,

    If using malloc() function in R2944 to replace Memory_alloc() in R1843 will make bugs or not?

    Regards,

    Bolong

  • Hello,

    MemoryP_xx is not used in the SDK so I would not use it. The HeapP_alloc function is defined in HeapP_freertos.c at the following path.

    C:\ti\mmwave_mcuplus_sdk_04_07_01_03\mcu_plus_sdk_awr294x_10_01_00_04\source\kernel\freertos\dpl\common\HeapP_freertos.c

    You can familiarize yourself with the code here.

    Is there a specific reason you want to use malloc()? Of course there is a possibility that this will introduce some bugs if making that change. I originally recommended HeapP_alloc()

    Best,

    Gabriel