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.

RTOS/TMS320C6678: can MessageQ_alloc() be called in HWI context

Part Number: TMS320C6678

Tool/software: TI-RTOS

Hi

Can the IPC function, MessageQ_alloc(), be called in HWI context in TI-RTOS?

Thanks!

Wai Kwok

  • Hello,

    No, MessageQ_alloc() cannot be called within a HWI context due to it's blocking nature. Generally speaking, blocking calls cannot be made from a HWI context since HWIs (and SWIs) need to run to completion without blocking. If a blocking call is made within a HWI, you'll get the following assert error:

    assertion failure: A_badContext: bad calling context