experience, I recommend reading its datasheet through.
You will be amazed at how much the STM32F030R8T6
has in common with your favorite microcontroller.
Segger Embedded Studio
The Segger Embedded Studio (referred to as SES for
the remainder of this article) consists of a code editor, a
C/C++ compiler, and an integrated debugger that can take
advantage of the Segger J-Link PRO hardware
debugger/programmer. SES is a free download as long as
you don’t use it commercially. In free mode, the Studio is
unrestricted and has no time limit. It’s very easy to use
and comes well documented.
Setting Up for the STM32F0308-DISCO
The SES is a powerful ARM development
environment. However, out of the box it doesn’t have a
clue as to what we want it to do. So, the first thing we
have to do is provide the SES with STM32F030R8T6
information that it can use to help us achieve a successful
compilation of our code.
Since we will only be working with the
STM32F030R8T6 this time around, we’ll only load the
STM32F0xx CPU support package. The support package
contains project templates and system files we will need
to work with the STM32F030R8T6. The STM32F0xx CPU
support package is installed using the SES’s Package
Manager. As you can see in Screenshot 1, the STM32F0xx
CPU support package is installed and ready for use.
In Screenshot 2, we inform the SES that we would like
to write some C or C++ code targeting an STM32F0xx
Cortex-M microcontroller. The executable code template
has been selected as shown in the screen capture.
ADVANCED TECHNIQUES FOR DESIGN ENGINEERS
February 2016 47
■ Screenshot 1. Since we will only be working with the
STM32F030R8T6, we will only install the STM32F0xx CPU
■ Screenshot 2. We are starting from scratch and will be
writing code for an STM32F030R8T6 Cortex-M
microcontroller. This entry window informs the Segger
the new project.
■ Screenshot 3. It would be a good idea to let the Segger
Embedded Studio know which Cortex-M microcontroller we
want to work with. So, we tell it here.