Writing first application
For writing applications for STM32VLDISCOVERY board we need toolchain, which supports STLink debuger and SWD protocol. Unfortunetly at this moment OpenOCD debug tool do not support SWD and STLink, so we can't use free toolchains. SWD protocol supports following toolchains : MDK-ARM from Keil, EWARM from IAR and TrueSTUDIO form Atollic. In this tutorial all examples will be shown for MDK-ARM.

Creating uVision project - step by step
To create new uVision project select "New uVision Project" command from menu "Project" :

Creating uVicion project

You will be asked for name and disk loction for created project. Next, You must select device. On STM32VLDISCOVERY board is installed STM32F100RBT6 device, so select "STM32F100RB" option from dialog window:

Selecting device

After device selection uVision ask if add startup file to project tree :


If You click "Yes", in project tree will be present startup file, suitable for STM32F100RB microcontroller :




(c) Radosław Kwiecień