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.

DSPLink multithread problem

Hi,everybody.

when I develope DSPLink based on loop demo .On GPP side, I need to split the LOOP_Execute function into two parts or two threads,that is, gpp2dsp and dsp2gpp.

The function of gpp2dsp as follow:

gpp2dsp( )  {                                                                                                                      

       while(1)  { 

              ........................

              CHNL_issue() ;  // Issue 'filled' buffer to the channel

              CHNL_reclaim() ;  // Reclaim 'empty' buffer from the channel

               ......................

          }

}

The function of dsp2gpp as follow:

dsp2gpp( )  {                                                                                                                      

       while(1)  { 

              ........................

              CHNL_issue() ;  // Issue 'empty' buffer to the channel

              CHNL_reclaim() ;  // Reclaim 'filled' buffer from the channel

               ......................

          }

}

If I execute the function of gpp2dsp, the result is correct and the address of buffer is continuous,

but If I execute the function of dsp2ggp, the result is uncorrect and the address of buffer is uncontinuous, why?

And  another question :

When execute the program , the serial port show the error :"Assertion failed (PMGR_CHNL_IsOwner (procId, chnlId, optArgs)). File : pmgr_chnl.c Line : 347" ,why?