STM32H7 Duplex I2S cannot TX/RX simultaneously through the HAL.
Hi.
HAL_I2S_Transmit_DMA() and HAL_I2S_Receive_DMA doesn:'t work simultaneously. As a result, programmer cannot use I2S TX and RX together in the STMH7 Duplex I2S.
- STM32H743
- CubeIDE 1.2.1
- STM32Cube FW_H7 v1.6.0
Attached screenshot points where the API returns error, and the attached project demonstrate the problem on Nucleo H743ZI.
In this program, I2S1 is configured as duplex master. Thus, TX and RX functions are available. The program checks the return code from API and display on LED.
LED2 (Blue) tests the TX API.
- Turn On : HAL_OK
- Blink : Not HAL_OK
LED2 (Red) tests the RX API.
- Turn On : HAL_OK
- Blink : Not HAL_OK
You can see the Blue LED turns on and Red LED blinks. If you remove the TX API call from program, RX API works well. Thus, this is interference of the both APIs.
Please check and fix.
