1 Reply Latest reply on Mar 27, 2012 11:32 AM by anandsrinivasana_

    Clear the data in the MultiChannel

      I  have created a MultiChannel using  the type of DMA_TYPE_AUTO_MANY_TO_ONE.I used 2 PIB socket as the producer and 1 UIB socket as consumer.I used this make  the slavefifo.Before I restart the slavefifo,I want to reset the channel and socket to clear the data.


      But now I find that  the FLAG of the producer bacome  full after  I write a few data. The number of data I have written is less than the buffer size when I creat the channnel .So I think there are some data in the producer socket which I have't flush.


      I did the reset operation as follow:


      1.Make the FPGA on the state of reset.


      2.Reset the channel by CyU3PDmaMultiChannelReset.


      3.Set a non-finite transfer  by CyU3PDmaMultiChannelSetXfer.


      4.Resum the channel by CyU3PDmaMultiChannelResume.


      5.Start the FPGA.


      So how to reset the PIB procducer of MultiChannel.How to clear all the data in the channel and socket.