DMA SPI need 2 read S2LP Module
Hi everyone,
I'm currently working on project witch use SPi with DMA and S2LP Module
I have a function that initializes the DMA portion :
In my code I try to read information in DMA through the SpiritDeviceVersion and SpiritReadnbinfifo functions:

However, I get my data, but only when I call a DMA read 2 times :
nbOctetRecuB = the value I should read from nbOctetRecuA (0xC1)
nbOctetRecuB2 = the value I should read from nbOctetRecuB (0x0A, my FIFO element count)
nbOctetRecuC = the value I should read from nbOctetRecuB2 (0x0A, my FIFO element count) => whereas I expect 0xC1.
Below are one of those function:

I don't understand witch element is missing, why i need to perform another DMA operation to get my data ?
Just a heads-up, a double DMA operation is needed : so if I read S2LP register with DMA, and after Reread DMA without using SPI (ex no CS command) i get my data, this is what it tell me the problem isen't from the SPI ?
Is anyone get tis issue ?
Tanks for your time, Regards.
