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.

TDA2EG: Stack usage in tda2xx application

Part Number: TDA2EG

Hi all,

I have implemented the svs application on tda2xx.For that i am configuring the following stack sizes:

a15:0x4000
m4_0:0x6000
m4_1:0x7000
dsp_1:0x8000
dsp_2:0x4000

on each of the cores.I want to determine the stack usage during application run time.

Is there many method or way to know the applcatiion stack usage during run time.

Regards

Mayank

Will there be any improve in performance if i increase the stack usage.

Regards

Mayank

  • Hi ,

    Mayank Agarwal said:
    Is there many method or way to know the applcatiion stack usage during run time.

    You can use the CCS Rtos Object View(ROV) during active debug session to analyze cores stac size, task state, priority, addresses and all kinds of similar data. Try it. 

    Mayank Agarwal said:
    Will there be any improve in performance if i increase the stack usage.

    Each stack size must be large enough to handle normal task function calls. If you are experiencing poor performance, increase the stack size, use the ROV view to determine the actual stack size needed/used, then readjust the size to match actual size used.

    Hope it helps,

    Thanks,

    Alex

  • Hi Alex,

    Thanks for your reply.

    I am not able to connect to a15 as the application is running on a15 core and if i try to connect it it still shows running.
    I am using release mode for the binaries.Is there any other method apart from connecting a15 core in CCS.

    Regards
    Mayank
  • Hi ,

    That's the method that I know of which works pretty well. Don't know another way... However I searched around and came across this article about polling dynamically and statically on stack usage: processors.wiki.ti.com/.../Stack_issues .

    Thanks,
    Alex