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.

c6455 NDK stack, heap size problem!

hello,

I  am using the NDK in c6455, I have the cfgdemo example, I open the dsk6455.tcf  in cfgdemo example!

I have some problems!

1.picture below ,the Stack Size(MAUs:):0x1400, Is this stack  for NDK usage? if the stack has relationship with NDK?

 

2.this picture below, Default  stack size(MAUs):1024, this stack is used for what ?

 

3.this picture, also has a Stack size(MAUs):4096,  this Stack is used for what??

 
 
 
all above have Stacks, I want to know if these Stacks have relationship with each other! 
  • Hi si cheng,

    si cheng said:
    1.picture below ,the Stack Size(MAUs:):0x1400, Is this stack  for NDK usage? if the stack has relationship with NDK?

    The stack size in this picture is for the system stack used by DSP/BIOS.  The NDK does not use this stack.

    si cheng said:
    2.this picture below, Default  stack size(MAUs):1024, this stack is used for what ?

    This stack is the default stack size for DSP/BIOS tasks (TSK).  So, if your application creates a task and the stack size parameter is not specified, then it will create the task with the default stack size given here.  The stack will be specific to the task being created and will be used for storage of variables local to that task's function, as well as context save/restore operations and function calls made from within the task's function.

    si cheng said:
    3.this picture, also has a Stack size(MAUs):4096,  this Stack is used for what??

    The stack size you see here is specifically for the task "tskNdkStackTest".  This task is for the main NDK thread, probably called "StackTest()" in the cfgdemo.c example.  It will be used for storing variables local to the TSK function "StackTest()" (and for any functions called from StackTest()), and context saves.

    ---------------

    Also, you for each of these windows, you can press the "F1" key to bring up the CCS help for these configuration parameters.  The help page will provide you with some more detailed explanation and insight.

    Steve