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.

Enabling Stack Checking in BIOS 4.90 CCS 3.1

Hi,

I'm working on a field failure issue with a legacy product and would like to profile the stacks.

Basically I'd like to configure BIOS to perform stack checking as described by one of your Wiki pages but for this older version where I have a .cdb file.

The new way to do this with a .tcf file seems to be:

bios.TSK.CALLSWITCHFXN = 1;

bios.TSK.SWITCHFXN = prog.extern("TSK_checkstacks");

Thanks in advance for any suggestions.

BIOS 4.90
CCS 3.1
'C5509A

  • Kenny,

    Yes, you should be able to do that to configure TSK_checkstacks() on task switches.  Maybe you saw it on this page?: http://processors.wiki.ti.com/index.php/DSP_BIOS_Debugging_Tips

    If you open the DSP/BIOS User’s Guide (in your DSP/BIOS installation), there is some description of using TSK_checkstacks() as well as TSK_stat().

    And also, in the C55x DSP/BIOS API reference guide (spru404), there are man page descriptions for both these APIs.  The TSK_checkstacks() page shows an example of using your own task switch function, and calling TSK_checkstacks() from within that.

    Scott

  • Thanks Scott.

    I did see the debugging tips link but it only showed how to do things with the new BIOS configuration files. SPRU404 (or at least the one I found) is for BIOS 5.x.

    I did find the installed docs for my version however and, because I am trying to see what kind of margin I have on my stacks, it looks like that TSK_stat() may be the perfect thing.

    The document does describes the installation of the user-defined context switch call but at the moment it's not clear how you install that function.

    I suppose I am too accustomed to googling things and forgot that relevant information was included in the tools installation. I thank you for not invoking RT(Fine)M.