
STM32 F4xx Discovery Board
Setup Guide
Audio Weaver
November 2016

DSP Concepts STM32F4xx Discovery Board Users Guide
Page: 2 of 10
Copyright Information
© 2014 DSP Concepts, Inc., ALL RIGHTS RESERVED. This document may not be
reproduced in any form without prior, express written consent from DSP Concepts, Inc.
Printed in the USA.
Disclaimer
DSP Concepts, Inc reserves the right to change this product without prior notice.
Information furnished by DSP Concepts is believed to be accurate and reliable. However,
no responsibility is assumed by DSP Concepts for its use; nor for any infringement of
patents or other rights of third parties which may result from its use. No license is granted
by implication or otherwise under the patent rights of DSP Concepts, Inc.

DSP Concepts STM32F4xx Discovery Board Users Guide
Page: 3 of 10
Overview
This document describes how to use Audio Weaver with the STM32F401 and F407
Discovery boards. These are low cost evaluation boards for the STM32F4 series of
Cortex-M4 processors. The two boards differ slightly in the operating frequency and
amount of memory available. The instructions show how to setup the F407 board - the
higher performance processor. Setup for the F401 is almost exactly the same.
Features
Audio I/O: 2-in via USB. 2 out via DAC. @ 48 kHz
CPU clock speed 84 MHz (STM32F401)
168 MHz (STM32F407)
Tuning interface: USB HID device
Flash file system support: No
Booting from flash: Yes
Fundamental block size: 32 samples
Native data type: Floating-point

DSP Concepts STM32F4xx Discovery Board Users Guide
Page: 4 of 10
Setup
The board has two USB connections:
Mini-USB – for power and programming
Micro-USB – for audio and control
Start by connecting the mini-USB connector to your PC. This will power on the board
and several LEDs will light.
Then install the ST-Link programming utility. This was included in the installer and is
located in the
<AWE>/ST_LINK Utility
folder. After installation, start the utility and the following window will appear:
From the toolbar, click on the
button to connect to the target. After a few seconds, the window will update to

DSP Concepts STM32F4xx Discovery Board Users Guide
Page: 5 of 10
Click on the “Full Chip Erase” button to completely erase the flash contents.
Then Click on the “Program and Verify” button:
Then browse and select a binary loader file to program. Each Discovery board has a
separate .bin file:
<AWE>/Bin/STM32-keil-rel/STM32F401VC.bin
<AWE>/Bin/STM32-keil-rel/STM32F407VG.bin
You’ll then advance to the next window. Click the “Start” button to begin updating the
flash memory.

DSP Concepts STM32F4xx Discovery Board Users Guide
Page: 6 of 10
After a few seconds, the programming operation will complete.
Next, plug in the micro-USB connection to your PC and press the black reset button. The
board will appear as two new USB devices and driver installation should happen
automatically on Windows 7 and Windows 8. That is, the board uses default Windows
drivers and no special drivers need to be installed1.
The board appears as a USB audio device. Select this under your Windows audio device
settings. On Windows 8, it appears as:
Plug in speakers to the output 3.5 mm audio jack and try playing audio from your PC.
You should hear audio being rendered by the STM32 Discovery board.
Connecting Audio Weaver to the Target
Launch Audio Weaver Designer application. Then from the Server Window (not from
the Designer window) select the menu item TargetChange Connection
Windows XP is currently not supported.

DSP Concepts STM32F4xx Discovery Board Users Guide
Page: 7 of 10
In the droplist select “USB” and change the PID and VID settings if necessary as shown
below
For the STM32F407 board
For the STM32F401 board
Click on the “Change” button. This window will dismiss and the Server window will
update to reflect the connection to the Discovery board. You’ll see

DSP Concepts STM32F4xx Discovery Board Users Guide
Page: 8 of 10
At this point the Audio Weaver Server is able to communicate with the board. To make
sure that the Audio Weaver Designer sees this change, click on the “Reconnect to Server”
button .
The default system drawn in Audio Weaver Designer is shown below.
The target has a fundamental block size of 48 samples and operates at a fixed sample rate
of 48 kHz. The left input pin indicates 2 channels of input (stereo) and this is the audio
which is streaming from the PC. The right output pin is also stereo and this is the audio
being output to the DAC. If you build and run a system but no audio is streaming from
the PC then the Server will show a CPU usage of 0%. Real-time processing will only
happen once you play audio from the PC.
Using GPIO Inputs and Outputs
The Discovery boards have a variety of leds, I/O pins, and a blue user button. Audio
Weaver has a GPIO block that allows either output to a GPIO pin or led or input from a
GPIO pin or the blue user button. However, the block has to be setup to access the
desired pin. Each pin and led on the board is labelled. The GPIO block numbers pins
starting with pin 1 and these need to be mapped to the actual pins on the board.

DSP Concepts STM32F4xx Discovery Board Users Guide
Page: 9 of 10
STM32F407VG-Discovery Board Available GPIO Pin Map

DSP Concepts STM32F4xx Discovery Board Users Guide
Page: 10 of 10