Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 3 months ago.
BSP library for F746NG not working with mbed after 121 revision
Hello!
I am working with F746NG demo board at the moment and after some newer revisions of mbed library it looks like I cant compile my project with BSP lib for that board. The message is
mbed compiler output
Error: Identifier "HAL_SAI_STATE_TIMEOUT" is undefined in "BSP_DISCO_F746NG/stm32746g_discovery_audio.c", Line: 492, Col: 28 Error: Identifier "HAL_SAI_STATE_ERROR" is undefined in "BSP_DISCO_F746NG/stm32746g_discovery_audio.c", Line: 492, Col: 74 Error: Identifier "HAL_SAI_STATE_TIMEOUT" is undefined in "BSP_DISCO_F746NG/stm32746g_discovery_audio.c", Line: 498, Col: 27 Error: Identifier "HAL_SAI_STATE_ERROR" is undefined in "BSP_DISCO_F746NG/stm32746g_discovery_audio.c", Line: 498, Col: 72 Info: Unable to download. Fix the reported errors...
What should I do with this? With 121 version it works without problems. Thanks!
Question relating to:

3 Answers
7 years, 11 months ago.
We can close this point as BSP_DISCO_F746ZG library is now OK with lastest MBED revision
See https://github.com/ARMmbed/mbed-os/issues/2913
8 years, 2 months ago.
Yes, this seem to be the case...
Those definitions are missing in the file: mbed-dev\targets\cmsis\TARGET_STM\TARGET_STM32F7\stm32f7xx_hal_sai.h
This is from older revision:
typedef enum
{
HAL_SAI_STATE_RESET = 0x00, /*!< SAI not yet initialized or disabled */
HAL_SAI_STATE_READY = 0x01, /*!< SAI initialized and ready for use */
HAL_SAI_STATE_BUSY = 0x02, /*!< SAI internal process is ongoing */
HAL_SAI_STATE_BUSY_TX = 0x12, /*!< Data transmission process is ongoing */
HAL_SAI_STATE_BUSY_RX = 0x22, /*!< Data reception process is ongoing */
HAL_SAI_STATE_TIMEOUT = 0x03, /*!< SAI timeout state */
HAL_SAI_STATE_ERROR = 0x04 /*!< SAI error state */
}HAL_SAI_StateTypeDef;
As a workaround, I just added those missing definitions, and then the compilation works OK.
But this should be fixed in the official release...
8 years, 2 months ago.
Sorry to ask: Where did you add these definitions? Where is the mbed-dev\targets\cmsis\TARGET_STM\TARGET_STM32F7\stm32f7xx_hal_sai.h
Have some problem to handle this mbed :-)
Same question here. I can find these files if I export my workspace from mbed to my computer as a project, but I cant find a way to add these lines as a part of online project in mbed. +_+ I believe it would be a better solution if STM or ARM mbed representatives would do smth about this problem as it is now clear I am not the only one to read such messages from compiler. Surprised there is no response still. =_=
posted by 30 Sep 2016
Filed a bug: https://github.com/ARMmbed/mbed-os/issues/2913
posted by Jan Jongboom 04 Oct 2016