I've got a problem in my code where embOS is calling OS_Error() indicating that the problem is OS_ERR_INV_TASK. I'm wondering what data item embOS is determining is corrupt that causes it to throw that error so I can narrow down my troubleshooting to the right areas (unfortunately I'm working without a source license to embOS).
Note that I want to make clear that I understand this isn't an embOS problem - some data structure is being corrupted (probably a TCB). I'm just wondering if there's a particular set of fields in the TCB I should concentrate on, and if the corruption is in the 'current' TCB or can it be any TCB in the task list? This is a problem that has been seen only once so far and not while a debugger was attached. It's proving to be difficult to repro, so as much as possible I want to make sure I'm looking the right things for when it does repro I can have a hope of catching it.
Note that I want to make clear that I understand this isn't an embOS problem - some data structure is being corrupted (probably a TCB). I'm just wondering if there's a particular set of fields in the TCB I should concentrate on, and if the corruption is in the 'current' TCB or can it be any TCB in the task list? This is a problem that has been seen only once so far and not while a debugger was attached. It's proving to be difficult to repro, so as much as possible I want to make sure I'm looking the right things for when it does repro I can have a hope of catching it.