Initialized for DISCO_F413ZH audio example

Dependencies:   BSP_DISCO_F413ZH

This is a simple Audio loopback code for DISCO_F413ZH.

The base repository is https://os.mbed.com/teams/ST/code/BSP_DISCO_F413ZH/. I've added workaround patch for Audio-in and out(loopback) demo on DISCO_F413ZH board(Microphone U16, U17)

https://os.mbed.com/media/uploads/Daniel_Lee/img_9603.jpg

If you connect a 5x Mems microphone, the Audio-in path (U16 and U17) going to be automatically changed to 5x Mems microphone.

Testing

1. Import the application into your desktop

You can use Mbed CLI, Online Compiler, and Mbed Studio.

  • In case of Mbed CLI,

mbed import http://os.mbed.com/users/Daniel_Lee/code/DISCO_F413ZH-AUDIO-demo/

cd DISCO_F413ZH-AUDIO-demo
  • In case of Online Compiler and Mbed Studio, Please click 'Import into Compiler'

2. Compile and program

mbed compile -t <toolchain> -m <TARGET_BOARD>

(supported toolchains : GCC_ARM / ARM / IAR)

3. Download binary to a target board

4. Open a serial monitor on baudrate 115200 to see the output

AUDIO LOOPBACK EXAMPLE FOR DISCO-F413H START:
Audio init done..
Audio buffer init done..
Audio in(Microphone U16, U17) recording start..
Audio out init done..
Start loopback (Mic -> Audio Jack)!!
Committer:
arostm
Date:
Wed May 17 14:16:43 2017 +0200
Revision:
0:adbe8684bb7c
Child:
1:1025d8dcf8ec
Creation of an LCD exemple for the DISCO-F413ZH board

Who changed what in which revision?

UserRevisionLine numberNew contents of line
arostm 0:adbe8684bb7c 1 #include "mbed.h"
arostm 0:adbe8684bb7c 2 #include "stm32f413h_discovery_lcd.h"
arostm 0:adbe8684bb7c 3
arostm 0:adbe8684bb7c 4 int main()
arostm 0:adbe8684bb7c 5 {
arostm 0:adbe8684bb7c 6 BSP_LCD_Init();
arostm 0:adbe8684bb7c 7
arostm 0:adbe8684bb7c 8 /* Clear the LCD */
arostm 0:adbe8684bb7c 9 BSP_LCD_Clear(LCD_COLOR_WHITE);
arostm 0:adbe8684bb7c 10
arostm 0:adbe8684bb7c 11 BSP_LCD_DisplayStringAt(0, LINE(1), (uint8_t *)"MBED EXAMPLE", CENTER_MODE);
arostm 0:adbe8684bb7c 12 wait(2);
arostm 0:adbe8684bb7c 13 BSP_LCD_Clear(LCD_COLOR_GREEN);
arostm 0:adbe8684bb7c 14 BSP_LCD_SetBackColor(LCD_COLOR_GREEN);
arostm 0:adbe8684bb7c 15 BSP_LCD_SetTextColor(LCD_COLOR_BLACK);
arostm 0:adbe8684bb7c 16 BSP_LCD_DisplayStringAt(0, LINE(5), (uint8_t *)"DISCOVERY STM32F413ZH", CENTER_MODE);
arostm 0:adbe8684bb7c 17
arostm 0:adbe8684bb7c 18 while(1) {
arostm 0:adbe8684bb7c 19 }
arostm 0:adbe8684bb7c 20 }
arostm 0:adbe8684bb7c 21