

The main.cpp file contains a basic program that turns the on-board LED on the Nucleo on and off:ĭigitalOut is a class that assigns a pin as a digital output. The Nucleo_blink_led program will contain a “main.cpp” file and the mbed library. The default program name is Nucleo_blink_led. Our First Nucleo ProgramĬlick “New” and a dialog opens up. The Nucleo F103RB board should now be visible:Ĭlick the board, then the “Select Platform” button to get started. Tick the ST Microelectronics checkbox to find the Nucleo-F103RB board quicker:Ĭlick the board and, on its info page which you will be redirected, click the “Add to your Mbed Compiler” button:Īfter the confirmation, go back to the compiler page and click the “Select Device” button on the upper-right corner again. Once you’re in the compiler page, click on the upper-right corner to add an Mbed-supported board: Go ahead and register now to use the online compiler. It’s an online compiler with a neat interface and follows Arduino coding standards. There are a couple of ways to program the STM32 Nucleo board but I found using Mbed is the easiest for beginners. Inside the “drive” is a link to the Mbed website and a text file containing some info about the board. If the driver installation is successful and the Nucleo board is connected to the desktop computer, it will act like a removable flash drive. Here it is attached to my STM32 Nucleo:ĭownload the driver for the STM32 board.

The STM32 Nucleo boards by ST packs a lot more power than an Arduino UNO and has headers aligned the same way with the latter that makes it compatible with Arduino shields.įor this tutorial and the next, I will be using Seedstudio’s Grove Shield as it makes it easier to connect some of the devices I need.
