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.

Increasing Stack Size NDK example

Hi everyone,

I am using the NDK helloworld example for the networking in my project. I was wondering how do I increase the size of the stack for the callback function in the NDK example? I have written functions that requires large static memory allocation and it runs in the callback function. The task size cannot be defined in the .cfg file as the function only runs when the callback function for the server when a client connects. Your help is much appreciated.


Best regards,

Chan

  • Chan,

    Please mention the device/board details and NDK package version. If the memory used by the daemon task is not initialized to this value when the program loads, the KOV reports that the stack is full.
    You can find more details and how to configure the task stack through the cfg file.
    http://processors.wiki.ti.com/index.php/TI-RTOS_Networking_Stack_Memory_Usage
    http://processors.wiki.ti.com/index.php/NDK_Dynamic_Memory_Manager
    http://processors.wiki.ti.com/index.php/Network_Developers_Kit_FAQ#Q:_I_checked_the_troubleshooting_section_in_the_User.27s_Guide_but_NDK_still_cannot_communicate_properly._Is_this_a_priority_issue_between_my_application_and_the_NDK.3F

    This thread will help you,
    http://e2e.ti.com/support/embedded/tirtos/f/355/p/276192/967140.aspx

  • Chan,

    If you use NDK helloworld example, there is only one task created. Maybe you can create a seperate task, inside that task you have the callback function and configure this task with bigger stack size. Will this meet your need?

    Regards, Eric 

     

  • Silly me for forgetting to mention the board and NDK package. I am currently using the C6678 DSP with NDK ver 2.23. Thank you for your help, the links seem to be relevant to what I need. Cheers.

  • Eric,


    You are right, didn't think about that. Thank you for the suggestion.


    Regards,

    Chan