Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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.

TI-RTOS-MCU: Query the MCU stack usage on TDA4 J784S4

Part Number: TI-RTOS-MCU

I saw an interface in the PDK to query the usage of the MCU heap.

extern HeapP_Status HeapP_getHeapStats(HeapP_Handle handle, HeapP_MemStats *stats);

I want to query the usage of the MCU stack but I can't find the corresponding interface, can you help me a little

  • Hello,

    Can you have a look at the HeapP_getHeapStats implementation in the PDK path: /packages/ti/osal/src/freertos/HeapP_freertos.c line 228.

    Thanks.

  • Hello, 

    Sorry, I may not have made it clear
    When my program is running, I use this interface to query the heap usage, but the heap usage does not change in any way.
    So, I think my program mostly uses stack space. Also, I want to query the usage of the stack space, but I don't find the corresponding interface in the PDK or elsewhere to query it.
    So I'd like to ask for some help.


    Thanks.

  • Hello,

         Can you help me answer it as soon as possible, I’m in a hurry here.

    Thanks!

  • Hi,

    I believe you are using FreeRTOS.
    Referring to the comments in FreeRTOS-Kernel/task.c vTaskList can display the stack usage, but I don't see any OSAL implementation for this. You can use this API, but we have not validated this at our end nor do we have any other function to report the stack usage in PDK.

    Regards,
    Parth