Other Parts Discussed in Thread: SYSCONFIG
I have configured SPIs with DMA controller. There are two DMA channels: one for transmission and second for reception. There are two arrays on both the master and slave sides. In ideal scenario the transmit array index is same as receive array index. However if any device gets reset the the array indexes get misaligned. For e.g. if both master and slaves were initially at index number 10 then after any device reset one of the device has array index set to 0. This causes the data at array index 0 of the reset device to be written to array index 10 of the normal device. The master can signal to the slave to reset its SPI transmission via digital I/O or UART. The question is that what is the best way to reset SPI transmission & reception at the slave side considering that it is attached to DMA controller? It appears that i will need to reset both the DMA controller channels and SPI FIFOs but I don't know the proper and best way to do this.