Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.81 KB

README.md

File metadata and controls

29 lines (19 loc) · 1.81 KB

STM32 UDA1334A DAC Audio Output

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

  1. An STMF32F411 development board. Currently they can be ordered from the usual sites for around $15 USD plus shipping.
  2. Download and install the GNU Arm Embedded Toolchain
  3. Download and install GNU Make for Windows
  4. Download and install the STM32 ST-Link Utility.

 

Compiling and Flashing the Program to the Dev Board

  1. 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.
  2. Change to the UDA1334A directory and run "make". This will result in main.bin, the actual binary that will run on the STM32F411.
  3. Open the STM32 ST-Link Utility and select "Program" from the "Target" pulldown menu.
  4. Navigate to the UDA1334A directory and select main.bin.
  5. 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.