Skip to main content
FDixo
Associate III
August 14, 2018
Question

STM32H743 CubeMx I2S code generated with bugs (SPI_FIFO_THRESHOLD_01DATA undefined)

  • August 14, 2018
  • 2 replies
  • 746 views

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))

    This topic has been closed for replies.

    2 replies

    ST Technical Moderator
    August 14, 2018

    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

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    FDixo
    FDixoAuthor
    Associate III
    August 15, 2018

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