2018-08-13 05:27 PM
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))
2018-08-14 01:49 AM
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
2018-08-14 06:01 PM
Thanks Imen, that works. There is also a HAL_SPI_ERROR_NONE error which disappears when also changed to HAL_I2S_ERROR_NONE