This example was written for the STM32F411 development board. It shows how to interface an STM32F4 with Adafruit's I2S Stereo Decoder UDA1334A breakout board.
Foreword
I currently (Spring 2019) use Windows as my main development machine, however, I'm fairly certain all of the following steps can be similarly done using a typical Linux distro and probably MacOS.
Prerequisites
- An STMF32F411 development board. Currently they can be ordered from the usual sites for around $15 USD plus shipping.
- Download and install the GNU Arm Embedded Toolchain
- Download and install GNU Make for Windows
- Download and install the STM32 ST-Link Utility.
Compiling and Flashing the Program to the Dev Board
- Open a GCC Command Prompt. Note that a "GCC Command Prompt" option was installed when installing the GNU Arm Embedded Toolchain and should be available from Windows Start Menu.
- Change to the UDA1334A directory and run "make". This will result in main.bin, the actual binary that will run on the STM32F411.
- Open the STM32 ST-Link Utility and select "Program" from the "Target" pulldown menu.
- Navigate to the UDA1334A directory and select main.bin.
- Click "Start" to flash main.bin to the development board. After this is done you should hear a sine tone from speakers or headphones plugged into the UDA1334A board.