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.

how to change the buffer of MIbSPI

Other Parts Discussed in Thread: HALCOGEN

Hi,all

    I need sending data through MibSPI. The data length is different , the longest data may be more than 150 bytes,so how to set the length of buffer of MIbSPI? I find the MIbSPI buffer is shared by 8 groups, if change one ,the other may be affected.So I want to know how to set one group length each time I want to send different length data.

    Hope to get answer soon.

  • Hi Jiaming Sun,

    The best option to transfer varying lengths of data would be to configure the DMA to transfer into the MIBSPI txbuffer. Each time when you have varying length, you can just adjust the number of DMA elements to be transferred.  Please refer to the example given in halcogen 'example_mibspiDma.c' and for more literature, you can go through the 'DMA in Multi-Buffer Mode' section in the device TRM

     

    Thanks,

    Praveen