cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H743 CubeMx I2S code generated with bugs (SPI_FIFO_THRESHOLD_01DATA undefined)

FDixo
Associate III

When we setup a new project on the STM32H743 and select I2S, we get the following error. It appears that the macro SPI_FIFO_THRESHOLD_01DATA is not defined. Any help would be much appreciated.

.\..\..\Drivers\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_i2s_ex.c:306:72: error: 'SPI_FIFO_THRESHOLD_01DATA' undeclared (first use in this function)

      if ( (hi2s->TxXferCount > 1U) && (hi2s->Init.FifoThreshold > SPI_FIFO_THRESHOLD_01DATA))

2 REPLIES 2
Imen.D
ST Employee

Hello,

This is a known limitation and it will be fixed in coming version to replace

SPI_FIFO_THRESHOLD_01DATA with I2S_FIFO_THRESHOLD_01DATA.

Thanks for your contribution and sorry for the inconvenience that may bring.

With Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
FDixo
Associate III

Thanks Imen, that works. There is also a HAL_SPI_ERROR_NONE error which disappears when also changed to HAL_I2S_ERROR_NONE