Skip to main content
DRamb.1
Associate II
April 6, 2023
Solved

How to set-up analog audio line in on STM32H747I-DISCO to receive audio.

  • April 6, 2023
  • 7 replies
  • 4016 views

 I've worked out how to disable in the MEMs microphone I just want to use the blue 3.5mm input to receive/record the incoming audio. Thanks.

This topic has been closed for replies.
Best answer by DRamb.1

Actually a good example for getting audio in/out is the BSP project for the STM32H747I-DISCO board. Downloading the latest version 1.11.0 from: https://www.st.com/en/embedded-software/stm32cubeh7.html

And the code for the project in:

.\STM32Cube_FW_H7_V1.11.0\Projects\STM32H747I-DISCO\Examples\BSP\STM32CubeIDE

the Audio Record option looks quite useful.

Unfortunately, this BSP project code doesn't run on the board as the LCD screen just displays random pixels - maybe I'm hoping too much for ST example code to work first time !

7 replies

ST Technical Moderator
April 6, 2023

Hello @DRamb.1​,

You can find this STM32CubeH7/Projects/STM32H747I-DISCO/Examples/SPDIFRX/SPDIFRX_AudioPlay at master · STMicroelectronics/STM32CubeH7 (github.com). In this example two boards are used to send and receive audio data by using the

SPDIF RX/TX interfaces

 STM32CubeH7/Projects/STM32H743I-EVAL/Examples/SAI/SAI_AudioPlay at master · STMicroelectronics/STM32CubeH7 (github.com)

To learn more about how to use the SAI HAL API to play an audio file.

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
DRamb.1
DRamb.1Author
Associate II
April 6, 2023

Thanks, that project example seems to require two STM32H747I-DISCO boards. Have you not just got a very simple audio loopback project, i.e. audio is sent to the line in of the board and can then be heard on the line out ? Or am I asking too much ?

ST Technical Moderator
April 7, 2023

Hello again @DRamb.1​ 

You can adapt this example to your board STM32CubeH7/Projects/STM32H743I-EVAL/Examples/DFSDM/DFSDM_AudioRecord at master · STMicroelectronics/STM32CubeH7 (github.com)

When your question is answered, please close this topic by choosing Select as Best the answer that answered your question or solved your problem. This will help other users find that answer faster. 

Firas

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
DRamb.1
DRamb.1AuthorBest answer
Associate II
April 17, 2023

Actually a good example for getting audio in/out is the BSP project for the STM32H747I-DISCO board. Downloading the latest version 1.11.0 from: https://www.st.com/en/embedded-software/stm32cubeh7.html

And the code for the project in:

.\STM32Cube_FW_H7_V1.11.0\Projects\STM32H747I-DISCO\Examples\BSP\STM32CubeIDE

the Audio Record option looks quite useful.

Unfortunately, this BSP project code doesn't run on the board as the LCD screen just displays random pixels - maybe I'm hoping too much for ST example code to work first time !

MOBEJ
ST Employee
April 28, 2023

Hello @DRamb.1​ 

I confirm the issue on my side, In fact , the problem is Hardware issue in Video mode with LCD DSI MB166 rev A03 , it has been reported to HW team to fix it ,

Sorry for this inconvenience , we will updated you the fix as soon as possible

Thank you

Br

Moez

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
ST Technical Moderator
April 24, 2023

Hello @DRamb.1​,

Probably you were facing the same issue as the one reported here.

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
DRamb.1
DRamb.1Author
Associate II
April 24, 2023

Well yes, this is the issue I reported ?

ST Technical Moderator
April 24, 2023

Hello again @DRamb.1​,

.GUI_NUMBYTES_section (NOLOAD) : { *(.GUI_NUMBYTES_section) } >SDRAM

should be defined in the linker file.

Check this path STM32Cube\Repository\STM32CubeH7-master\Projects\STM32H747I-DISCO\Demonstrations\MenuLauncher\Gui\Target\GUIConf.c to look for GUI_NUMBYTES

I am not sure if this can help.

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL