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.

Task synchronizing question.



Hello,

I'm using CCSv4.2.4 with bios version 5.41.10.36.

There's a function in our application where I need to invoke IDL_run() API in order to force the viewing of the RTA Statistics Data. As far as I understood, as long as the idle loop has the lowest priority, I need to protect it by TSK_disable/TSK_enable block, preventing task switch in the middle of idle loop's pass.

According to documentation "Synchronizing DSP_BIOS Threads", page 11, TSK_disable/TSK_enable "don’t protect a critical section execution from being preempted by HWIs and SWIs". But according to page 75 of the documentation "DSP_BIOS_5_x_API_Guide", it is possible to prevent a task switch caused by HWI, by using TSK_disable/TSK_enable block.

How should I consider this in my application?

Anatoly.