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.

idle task : SP outside stack

Other Parts Discussed in Thread: CC2650

Hello,


I'm working with a CC2650 target. After some time it stops. In this case ROV indicates :

,ti.sysbios.knl.Task,Detailed,ti.sysbios.knl.Task.IdleTask,stackPeak,SP outside stack!

Before I add a semaphore I did not get (or may be It was less ofter) this issue.

Here are ROV tasks :

,0x20000e58,,5,Blocked,ICall_taskEntry,0xf001,0x20002b94,684,800,0x20000ea8,n/a,n/a,Semaphore: 0x200011d0
,0x2000292c,ti.sysbios.knl.Task.IdleTask,0,Running,0x1001c20b,0x0,0x0,312,512,0x20001908,n/a,n/a,
,0x20001f40,,3,Blocked,gapRole_taskFxn,0x0,0x0,452,544,0x200016e0,n/a,n/a,Semaphore: 0x20001300
,0x20001ef0,,1,Blocked,SensorTag_taskFxn,0x0,0x0,504,800,0x200013c0,n/a,n/a,Semaphore: 0x20001320

Increasing stack to 1024 with :

var Task = xdc.useModule('ti.sysbios.knl.Task');
Task.idleTaskStackSize = 1024;

does not help :

,0x20002b0c,ti.sysbios.knl.Task.IdleTask,0,Running,0x1001c20b,0x0,0x0,312,1024,0x200013c0,n/a,n/a,
,0x20002140,,3,Blocked,gapRole_taskFxn,0x0,0x0,452,544,0x20001ae0,n/a,n/a,Semaphore: 0x20001300
,0x20000e58,,5,Blocked,ICall_taskEntry,0xf001,0x20002d74,684,800,0x20000ea8,n/a,n/a,Semaphore: 0x200011d0

What can cause a stack overflow in idle task??? 


lah



  • Hi Lahorde,

    I need a little more information from you: What versions of TI-RTOS (and any other software & tools) are you using? What do you mean by "after some time it stops"? In what task/context does it stop? Are you adding idle functions to your application? Can you put a break point in the functions & check the stack on the first call? Can you check all of the task stacks to make sure nothing is corrupted?

    Can you post screenshots of ROV instead of copying the contents (text is a harder to decipher)?

    Regards,
    -- Emmanuel
  • Hi Emmanuel,

    I'm using TI RTOS 2.13.0.06 with CC6 6.1.2.00015 (all packages are up to date) on Linux.

    My code loops in exception handler after some time : BFARVALID and PRECISERR fault statuses are set.

    Here are stacks after crash - it does not seem corrupted :