Other Parts Discussed in Thread: SYSBIOS,
Tool/software: WEBENCH® Design Tools
I have an application that hits an assertion when it calls BIOS_exit(0), I'm using SYS/BIOS 6.73.1.1. The error message that comes out is: A_badContext: bad calling context. Must be called from a Task. Googling a bit shows that this error will pop up when calling Semaphore_pend while not in a task. Couple of questions:
- Is calling Semaphore_pend while not in a task the only time one gets a A_badContext error?
- Is there an API function that one can call to determine if they are in a task?
Interestingly, I have two other applications that have exactly the same code leading up to and into the call to BIOS_exit(0) that work just fine. Unclear at present what is actually different with this one application compared with the other two.
Kevin Jennings