To post comments on this article and find any associated files and/or downloads,
go to www.nutsvolts.com/magazine/issue/2017/12.
The Nucleo-F030R8’s power supply design is
straightforward, using linear voltage regulators all the
way through. The Nucleo-F030R8 can be powered via
its onboard USB portal or the VIN pin. Using the VIN
power portal requires that we bring out a power
connector on the perfboard. It’s easier to just power our
Nucleo-F030R8 from its onboard USB portal.
The Nucleo-F030R8 schematic set is every bit of
four pages. So, we won’t publish it here. You can get it
from the STMicroelectronics website. However, to make
things a bit easier for you, I have posted the Adafruit-to-Morpho SWD connections in Figure 1.
Crawling Before We Walk
I’m using a J-LINK Pro and a licensed copy of the
Keil ARM C compiler. You don’t have to dive in like I
did. You can use the educational version of the J-LINK
and the free version of the Keil ARM C compiler.
If you go with the free Keil compiler, you can only
build applications that are less than 32 kB in length. If
the J-LINK is breaking your development tool budget,
you can reFlash the Nucleo-F030R8 microcontroller
running ST-LINK with J-LINK OB (OnBoard) code.
The details on converting your Nucleo-F030R8’s ST-LINK to J-LINK OB can be found on the Segger
Once you have some form of J-LINK connected
to your Nucleo-F030R8, you must tell the uVision
IDE (integrated development environment) that a J-LINK device will be used for programming and
debugging. This is done by clicking on the little
magic wand in the uVision IDE and entering the
Options for Target window set. You can see that
this has been done in Screenshot 1.
To keep from pulling your hair out, take the
Settings tab beside the J-LINK selection and set the
port type to SW (SWD). The port type defaults to
JPEG and you will get “can’t find a device”
messages when you try to contact the Nucleo-
F030R8’s STM32F030R8T6 microcontroller with the
Here’s the scenerio: You are clueless about the
STM32F030R8T6 and you have just been
introduced to a simple “blink the LED” program that
was specifically written for the STM32F030R8T6.
The ARM source code is in front of you and it
appears to be written in a foreign language.
Fear not! The Keil uVision firmware
development system is your machete in this
ADVANCED TECHNIQUES FOR DESIGN ENGINEERS
December 2017 55
■ PHOTO 2. I use this setup for my Nordic BLE radio projects
and it works great for the Nucleo-F030R8 too. The Adafruit
adapter takes the pain out of assembling the Nucleo-F030R8’s
■ FIGURE 1. You could have easily figured this out from the
Nucleo-F030R8 schematic set. However, why make you do that
when I’ve already cracked the nut?
■ SCREENSHOT 1. Clicking on the magic wand will
take you to the Options for Target window set. Be
sure to select the J-LINK Settings tab and switch the
port from JTAG to SW.