Page 1
Quick Start Guide STM32Cube function pack for STM32WB MCU featuring advanced audio streaming over Bluetooth 5.0 using Opus codec (FP-AUD-BVLINKWB1) Version 3.0 (Feb 18, 2021)
Page 2
Agenda Hardware and Software overview Setup & Demo Examples Documents & Related Resources STM32 Open Development Environment: Overview...
• Flexible power-supply options: ST-LINK USB VBUS or external sources • On-board socket for CR2032 battery • On-board ST-LINK/V2-1 debugger/programmer with USB re- enumeration capability: mass storage, virtual COM port and debug port • Comprehensive free software libraries and examples available with the STM32Cube package Latest info available at www.st.com...
Page 5
• 3 push-buttons (2 users and 1 reset) and 1 touch key button • Connectors: STMod+, ARDUINO® Uno V3 expansion connector, USB user Micro-B connector, TAG10 10-pin footprint • Flexible power-supply options: ST-LINK/V2-1 USB connector, 5 V delivered by ARDUINO® or external connector, USB charger, or USB power •...
Page 6
X-NUCLEO-CCA02M2 Hardware Description The X-NUCLEO-CCA02M2 expansion board has been designed around MP34DT06J digital MEMS microphone. It is compatible with the ST morpho connector layout and with digital microphone coupon boards such as STEVAL- MIC001V1, STEVAL-MIC002V1 and STEVAL-MIC003V1. The X-NUCLEO-CCA02M2 embeds two MP34DT06J microphones and allows synchronized acquisition and streaming of up to 4 microphones through I²S, SPI, DFSDM or SAI peripherals.
Software Overview FP-AUD-BVLINKWB1 Software Description Overall Software Architecture FP-AUD-BVLINKWB1 is an STM32Cube function pack that performs full-duplex voice streaming or stereo music streaming over BLE using the advanced Opus compression algorithm. The application runs on P-NUCLEO-WB55 connected to an X-NUCLEO-CCA02M2 or on STM32WB5MM-DK.
Page 9
• Full-Band stereo music streaming: • 1x P-NUCLEO-WB55 or 1x STM32WB5MM-DK • Laptop/PC with Windows 7, 8 or 10 and Audacity or other audio recording sw • 1x micro-USB cable • 1x mobile device running ST BLE Sensor App, supporting BLE 4.2 or higher...
Page 10
Full-Duplex Application Examples X-NUCLEO-CCA02M2 HW setup Configure the X-NUCLEO-CCA02M2 board as in the picture in order to acquire only one microphone through the SAI...
Page 11
• Download and install STSW-LINK004 from www.st.com • FP-AUD-BVLINWB1 • Download the FP-AUD-BVLINKWB1 package from www.st.com, copy the .zip file contents into a folder on your PC. The package contains binaries and source code with project files (Keil, IAR, STM32CubeIDE) based on P-NUCLEO-WB55 or STM32WB5MM-DK.
Page 12
FP-AUD-BVLINKWB1. Sample applications Start coding in just a few minutes www.st.com/stm32ode FP-AUD-BVLINKWB1 package structure Docs BSP, HAL drivers Select Function Pack: BLE service, USB class, FP-AUD-BVLINKWB1 Download & unpack PDM2PCM lib, Opus BVLCentral BVLPeripheral BVLPeripheral_FullBand Manage audio recording on your...
Page 13
2.1- Test Full-Duplex audio streaming between two STM32WB...
Page 14
FP-AUD-BVLINKWB1. Step by step setup HW prerequisites for Full-Duplex demo between two STM32WB BVLPeripheral project BVLCentral project Central Unit Peripheral Unit P-NUCLEO-WB55 P-NUCLEO-WB55 Audio compressed X-NUCLEO-CCA02M2 X-NUCLEO-CCA02M2 @24kbps Audacity or other Audacity or other audio recording sw audio recording sw USB out USB out @16/8kHz...
Page 15
FP-AUD-BVLINKWB1. Step by step setup Full-Duplex between two STM32WB demo setup Compile and download BVLCentral application on one unit and BVLPeripheral application on the other (on P-NUCLEO-WB55 move JP1 on USB STL, on STM32WB5MM-DK move JP2 on USB STL) Move JP1 on P-NUCLEO-WB55 or JP2 on STM32WB5MM- DK from USB STL to USB MCU.
Page 16
2.2- Test Full-Duplex audio streaming between STM32WB and mobile device...
Page 17
FP-AUD-BVLINKWB1. Step by step setup HW prerequisites for Full-Duplex demo between STM32WB and mobile device BVLPeripheral project ST BLE Sensor App Central Unit Peripheral Unit P-NUCLEO-WB55 Audio compressed X-NUCLEO-CCA02M2 @24kbps Audacity or other audio recording sw USB out @16/8kHz BVLPeripheral project...
Page 18
Edit/Preferences, select Recording tab and check "Software playthrough of input“. Now select the STM32Microphone and click record * Open ST BLE Sensor App on your android device and connect to BVL-WB1. Push User button 1 on the board to start audio streaming to the app.
Page 19
2.2- Test Full-Band stereo music streaming...
Page 20
FP-AUD-BVLINKWB1. Step by step setup HW prerequisites for Full-Band stereo music streaming BVLPeripheral project BVLCentral project Central Unit Peripheral Unit P-NUCLEO-WB55 Audio Compressed Audacity or other 96/192 kbps audio recording sw USB out STM32WB5MM-DK stereo @48kHz BLE 4.2 or higher...
Page 21
Recording tab and check "Software playthrough of input“. Now select the STM32Microphone and 2 Recording Channels and click record * Open ST BLE Sensor App on your device and connect to BVFBAND. Choose a track and press play. (you can import wav file from your device) Audacity records 48kHz stereo music coming from the Android device.
Page 23
Documents & Related Resources All documents are available in the DESIGN tab of the related products webpage FP-AUD-BVLINKWB1: • DB3973: STM32Cube function pack for STM32WB MCU featuring advanced audio streaming over Bluetooth 5.0 using Opus codec – data brief •...
Page 24
4- STM32 Open Development Environment: Overview...
Page 25
The STM32 Open Development Environment (STM32 ODE) is an open, flexible, easy, and affordable way to develop innovative devices and applications based on the STM32 32-bit microcontroller family combined with other state-of-the-art ST components connected via expansion boards. It enables fast prototyping with leading-edge components that can quickly be transformed into final designs...
Need help?
Do you have a question about the STM32Cube and is the answer not in the manual?
Questions and answers