RA6M3 SPI Continuous Read DMA

Hi,

I am working with a RA6M3 device. I am using the device in master mode to collect the data from slave continuously after setting up the slave. Below is my code to read data without using the API functions. I am able to generate the clock and get data into my DMA buffer. But, my SPI generates uneven no of clock pulses for data reception upon the data ready interrupt from slave. I should read 4 bytes of data, but sometimes read 5-6 bytes or only 1 byte. Could anyone guide me on this. I have shared the configuration and code below.

Regards, 

Lumi