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)
If you connect a 5x Mems microphone, the Audio-in path (U16 and U17) going to be automatically changed to 5x Mems microphone.
- For more information, please see Audio input mechanism and API description
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)!!
Revision 3:5809b93aa2b7, committed 2020-01-31
- Comitter:
- Daniel_Lee
- Date:
- Fri Jan 31 07:55:52 2020 +0000
- Parent:
- 2:897f21ef78e3
- Commit message:
- Added mbed_app.json for baudrate 115200
Changed in this revision
mbed_app.json | Show annotated file Show diff for this revision Revisions of this file |
diff -r 897f21ef78e3 -r 5809b93aa2b7 mbed_app.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed_app.json Fri Jan 31 07:55:52 2020 +0000 @@ -0,0 +1,8 @@ +{ + "target_overrides": { + "*": { + "platform.stdio-baud-rate" : 115200, + "platform.stdio-convert-newlines": true + } + } +} \ No newline at end of file