Hello,
I'm developing on the cc2650 using TI-RTOS and i'm running into what i think is an issue with the scheduler.
I have a relatively simple application. It consist of one thread functioning as a state machine, two dynamically created HWIs, two SWI's to run de-bouncing on the interrupts generated from the HWIs. I use one semaphore posted by the SWIS and pended by the task. I use this to switch through states. I also have UART communication within the task and i'm using some pin_setoutputvalue() commands to toggle LEDs. That is pretty much the entirety of the application.
At random places in code, and random points in time the thread will become blocked on an Internal Error as can be seen using ROV. The error is "Invalid Task internal state: pend element address (0x0) is not within task's stack" The task stack peak is under its stack size limit (although it is highlighted in red) and the system stack (ROV->HWI->Module) peak is under its size limit as well.
Thanks,
Ryan