cancel
Showing results for 
Search instead for 
Did you mean: 

program loops on HAL_SAI_InitProtocol when using X-CUBE_AI

s319189
Associate III

I've a program that receives and transmits audio normally on STM32H7. The problem is that, when I'm using X-Cube-AI, after having generated a custom project with Cube AI Studio and having used the same configuration for I2S and GPDMA1 peripherals, the audio won't start. Appearently the program is looping on HAL_SAI_InitProtocol(&hsai_BlockA1, SAI_I2S_STANDARD, SAI_PROTOCOL_DATASIZE_32BIT, 2) != HAL_OK in MX_SAI1_Init.

I don't know if it's due to the lack of documentation for using GPDMA1 controllers when using X-CUBE-AI or it's a bug related to X-CUBE-AI.

I'll upload 2 projects: one that is working that does not use X-CUBE-AI (called i2s_h7) and the other one that has the same configured peripherals after having generated it with Cube AI Studio (h7_mcu_ai).

0 REPLIES 0