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.

SysBios: Stack overflow error

Other Parts Discussed in Thread: TMS320F2808

Hi

I am using sys bios TMS320F2808 device.

I have configured SPI task priority 1 and CAN task with priority 2.Also I have configured timer 1 ms and 10 ms.

Please find .cfg file attached.

I am getting error for Stack over or sometimes I found timer executed for a while and it goes to Task blocked functions.

Please assist me what RTOS related configuration I am missing here so I am getting unpredictable behavior

Newbee2425.app.cfg.

  • Hi Newbee,

    If the function call stack is too deep and/or each function has a lot of local variables, the task stack may overflow. You can either optimize stack usage or increase the task stack size to fix the problem.

    After increasing the task stack size, you can check the "Task"->"Detailed" ROV view to determine the stack usage and adjust the task stack size accordingly.

    Best,

    Ashish

  • Hi ashish

    Can you guide me how to install ROV. Please check my CCS settings overview it shows, ROV is not installed. So where should i get that installer??

    I am wondering.... my code timer got hanged and control goes to all task blocked so i want to check syncronisation behaviour.

    So let me know how to test it on ROV.

    Thanks & Regards

    Newbee

  • Hi Newbee,

    ROV is part of CCS and you dont need to separately install it. Here's a screenshot of how to launch ROV:

    Check the Tools menu again for ROV.

    Once you have ROV open, you can halt the C28 and open Timer view's device tab. This tab shows the current and remaining timer count. This count should change each time you run the core for a while and halt. The Timer ROV view will be helpful in debugging any timer related problems.

    Best,

    Ashish