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.

HeapBuf Error: Cannot call HeapBuf_free when no blocks have been allocated

Expert 1940 points
Other Parts Discussed in Thread: SYSBIOS

"[    135.954] [t=0x00000015:52ce7b00] ti.sysbios.heaps.HeapBuf: ERROR: line 296: assertion failure: Cannot call HeapBuf_free when no blocks have been allocated"

I started getting this assert after modifying my DSP firmware to call MessageQ_put() function twice for two different messageQs after receiving a msg from host.

 MessageQ_put() function description says that "the application loses ownership of the message once MessageQ_put() is called."

Is this asserting for the same reason? Or is this something else.

Any ideas on how I should handle a case where DSP need to respond via two different MessageQs for the same message received from the host?

Here are the packages I am using now on DRA7xx with DSP running on TI RTOS,

IPC - 3.36.01.11

SYSBIOS - 6.41.03.51

XDC - 3.30.06.67-core

CGT6x - 7.4.4

Let me know if any other info is required.

Thanks,

Girish