7 years, 6 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:

ST
A world leader in providing the semiconductor solutions that make a positive contribution to people’s lives, both today and in the future.

3 Answers

7 years, 2 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

Accepted Answer
7 years, 6 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...

7 years, 6 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 Faberge Fabulous 30 Sep 2016

Oh! OK! great, thank you for the answer :-) I made another comment on an other thread about the lack of followup on problems with mBed. Great product when it works, but 1/2 it doesn't for me. Not using it as much for this reason.

posted by jean-marc jobin 30 Sep 2016