Hi all, I'm having a prolem with TI DSP/BIOS. For a testing program I modified the "copy" example of DSP/BIOS as follows: - the original "copy" example have two host channels named "input" and "output" with notify functions calling _SWI_andn to post the SWI function cpySwi which call _copy routine to do the job - I need to modify this code so that the reading will finish before the writing. So I make: + HST channel "input" notify function is _SWI_post to post SWI inSwi + HST channel "output" notify function is _SWI_post to post SWI outSwi + SWI inSwi (priority=2) call "input_get" routine with HST channel "input" as argument + SWI outSwi (priority=1) call "output_put" routine with HST channel "output" as argument + input_get() concatenate all input data segments into a long linear buffer. + output_put() breaks this linear buffer into several segments and put them into the pipe. - The input seems to be OK. As soon as the input host channel is binded and started input_get is called many times to get data. The problem is with the output channel. The writer notify function (which will call output_put) is called once after exit from main (DspBios document says this is to setup the channel but I don't see why?) even when the output channel is not yet started and is never called again even when the output channel is binded and started. I checked the DSP/BIOS discussion board at TI and found that someone has asked this question before but there were no appropriate answer. Any idea what's happenning? Thank you very much, Khanh PS: CCS1.2|EVM67|Win98 |
HST target to host
Started by ●June 19, 2001