Getting Started with STM32 Programming Source Code

The peripherals on an Nucleo-32 F303K8

For those chosing to use the Nucleo-32 F303K8 device in their project, there are a set of driver files available that provide useful functions: outputting a sinewave from the DAC, taking a series of measurements using the ADC, decoding a shaft encoder and displaying characters on an LCD. You can modify these functions as much as you like. (For those choosing a different microcontroller, these may provide a useful template and source of ideas: the basic peripherals in most ST microcontrollers are similar.)

The LCD on the STM32F4 Discovery development board (MusTech only)

The LCD on the prototype development board is a little confusing to drive, so a set of drivers are provided for this exercise. Note that the LCD cannot be used if you are also using the audio DAC on the STM32F4 Discovery board, which means that these drivers are probably not of much interest to anyone on the Music Technology programmes.

The audio DAC on the STM32F4 Discovery board (MusTech only)

The audio DAC takes quite a bit of setting up to get it working. A set of drivers and header functions have been prepared for this purpose (see the "Getting started" guide for more details). You will need to include all of these source files in your project. You can download these source files from here.