HAL I2S Receive DMA mode stuck in BUSY mode
On a stm32 mcu, using HAL_I2S_Receive_DMA the clock generation is started. At first, the application went into a hard fault and nothing is subsequently written in the data receive buffer.
HardFault_Handler:
08000942: push {r7}
08000944: add r7, sp, #0
89 while (1)
08000946: b.n 0x8000946 <HardFault_Handler+4>
I corrected some settings and now it is in BUSY mode which is fine. However, now the receive data buffer does not get filled. What is the reason that the receive data buffer doesn't get filled:
uint16_t i2s_receive_buffer[100];
HAL_I2S_Receive_DMA(&hi2s2, i2s_receive_buffer, sizeof(i2s_receive_buffer));