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.

Ugly program crash? (,SYS abort called with message '*** TSK lock NOT CALLED IN TSK CONTEXT',RTASystem )

Guru 15580 points

Can someone help me decipher the above abort message? I am using DSP/BIOS 5.41.7.24. How can I track down the cause of the program crash?

 

  • Mike,

    Can you take a look at the system log once the program crashes?  Do you see any extra information about the abort in there?

    Also, there's some more info here on the DSP/BIOS FAQ:

    http://processors.wiki.ti.com/index.php/DSP_BIOS_FAQ#Q:_What_are_the_UTL_functions.3F

    Steve

  • Mike --

    You are probably calling printf() or some other RTS API from an ISR.   BIOS registers a mutex with the runtime library to make printf() and other functions thread safe.   The mutex is implemented using a SEM semaphore.  Since it is not legal to call SEM_pend() from and ISR with a non-zero timeout, we have a runtime check to look for this.   I think you should review your ISRs to see if you can find the offending call to printf() (or similar).

    -Karl-

  • Karl,

    Karl Wechsler said:
    You are probably calling printf() or some other RTS API from an ISR. 

    Bingo!