I guess I was too quick to conclude that it was working. If I run several times this is what I get:
1st attemp: Everything ok.2nd attempt: The received data is correct, but I get a CRC error and I never get a SPI_DMATransmitReceiveCplt interrupt on the transmit DMA stream (stream 4).3rd attemp: This starts with an interrupt from the receive DMA stream (stream3), but no interrupt flag is set. Everything else is ok.4th attempt: The received data is correct. but I never get a SPI_DMATransmitReceiveCplt interrupt on the transmit DMA stream (stream 4).5th attempt: This starts with an interrupt from the receive DMA stream (stream3), but no interrupt flag is set. Everything else is ok.Anybody know what's wrong?