STM32M4 (TX) transmits i2s data to another STM32M4 (RX) fails
I am trying to use one STM32M4 as TX, and another STM32M4 as RX,
but RX can't receive the correct i2s data that TX transmits.
TX transmits 16bits data by HAL_I2S_Transmit_IT(&hi2s2, i2s_dummy_buffer, 16);
RX receives 16bits data by HAL_I2S_Receive_DMA(&hi2s2, i2s_received_buffer, 16);
The results:
1) If TX transmit 0,1,2,...,15:
RX receives:
[0] = 0xC000 [1] = 0x0000 [2] = 0x4000 [3] = 0x8000
[4] = 0xC001 [5] = 0x0001 [6] = 0x4001 [7] = 0x8001
[8] = 0xC002 [9] = 0x0002 [10]= 0x4002 [11]= 0x8002
[12]= 0xC003 [13]= 0x0003 [14]= 0x4003 [15]= 0x8003
2) If TX transmits 16bits of 0xAAAA
RX receives 16bits of 0xAAAA
3) If TX transmits a sin wave
RX receives 16bits of unknown number
The following is TX and RX's config:
TX:


RX:

Let me know if you need more information,
thanks!!!
