Hi ,
When I apply DSPLINK in multithread environment under omapl138 wince6 platform , some ERROR happened , I don't know if DSPBIOS can be used this way.
The senerio is as the following.
all the code derives from DSPLINK Loop Sample
In gpp side there are 3 threads ( task_Monitor , task_gpp2dsp , task_dsp2gpp ) ,
task_Monitor is main thread . It's peusdo code is
task_Monitor() {
PROC_setup();
PROC_attach();
POOL_open();
CHNL_create(); CHNL_allocateBuffer() // for output
CHNL_create(); CHNL_allocateBuffer() // for input
}
task_gpp2dsp is used to send data to dspside It's peusdo code is
task_gpp2dsp() {
while(1) {
CHNL_issue();CHNL_reclaim
Sleep();
}
}
task_dsp2gpp thread is similar to task_gpp2dsp thread.
When execute the program , the serial port show the error "Assertion failed (PMGR_CHNL_IsOwner (procId, chnlId, optArgs)). File : pmgr_chnl.c Line : 456"
Can anyone tell me how to solve the problem