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.

stack adjustment

Other Parts Discussed in Thread: OMAP-L137

I've been trying to increase the size of my stacks, but one of them keeps resetting itself. I'm hoping someone can tell me why.

I'm developing an OMAP-L137 codec. The codec itself is pretty simple, but there are background tasks running. When I create my server, I develop the codec library using CCS on my Windows box. I zip up the debug and release libraries and take them to my Linux box.

On the Linux box, I put them in the codec subdirectory of my project. In the server subdirectory of my project, I have the additional .c files that make up the DSP image. Those files include .c, .h, .h62, and .s62 files from a project that I debugged on CCS, but transitioned over to the server. One .h62 and one .s62 file contains references to TSK_STACKSIZE. It was 0400H. I am trying to increase it to 010000H. I replace it in both files and do a make clean, make on the whole project. My server map file shows that TSK_STACKSIZE is 0400H. The files I edited still show 010000H, but auto-generated files vqm_results_server_x674cfg.h62 and vqm_results_server_x674cfg.s62 show 0400H.

When I do a general search for 0400H, I find someone called _DSMMEMSIZE that is 0400H. I can't find anything else. Can anyone tell me what is causing the auto-generated files to use a number that does not match my .h62 and .s62 files? It is "fixable"? (The memory segment for TSK's stack is DDR2 and there is plenty of room there for more than 400H.)

  • Hi,

    If you want to change the default task stack size of your server, you need to change it in the server's .tcf file. For example, in the codec engine example server, all_codecs/all.tcf, if I want to change the default TSK stacksize (0x400) to 0x800, I would add the following line (in red):

    /*  ===========================================================================
     *  TSK : Global
     *  ===========================================================================
     */
    bios.TSK.STACKSEG = platformSeg;
    bios.TSK.STACKSIZE = 0x800;

    Then when you re-build, the auto-generated files will have the updated stack size.

    Regards,

        Janet

     

  • That did it. Thanks!