Hi Giovanni Gherardi
Could you share the steps or the code where you disable and reset DMA and SPI modules? are you using a SDK driver?
This problem could be related with the FIFO. If SPI FIFO register didn't reset when you disable the transfers, then you could have lost of data. You can check the register LPSPIx_CR.
Hope this information could help you.
Have a great day,
Jorge Alcala
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------