STM32 step-by-step is a learning program, part of the STM32 Education initiative, designed for anyone interested in getting started on building projects with the STM32 microcontroller and its powerful ecosystem of development boards and software programming tools.

STM32 step-by-step is a learning program, part of the STM32 Education initiative, designed for anyone interested in getting started on building projects with the STM32 microcontroller and its powerful ecosystem of development boards and software programming tools.

Whether you are an experienced embedded programmer or an enthusiastic beginner, learn in 5 tutorials from the basics of the STM32 ecosystem installation to advanced software development with sensors, UART messages and Bluetooth communication.

Start now and quickly become a professional STM32 developer!

Modules descriptions

Step 1:  Pre-requisites pdf

Install the main tools to program STM32 and run a first example:

1. Install STM32CubeMX
2. Install TrueSTUDIO
3. Install STM32CubeProg
4. Download STM32CubeL4
5. Launch TrueSTUDIO in debug mode and run my first program

Download PDF

Step 2:  Blink LED example on the NUCLEO-L476RG board using STM32CubeMX and HAL  pdf

Learn how to use STM32CubeMX tool to configure the pins, start the peripherals, build and generate your starting projects with initialization C code using HAL:

1. Create New Project using STM32CubeMX
2. Pinout Configuration
3. Clock Configuration
4. GPIO Configuration
5. Configure project and generate source Code
6. Edit main.c to Toggle the LED
7. Build the Project
8. Debug the Project

Download PDF

Step 3: UART and new board introduction  pdf

With this module, you will:

 - Get to know a new board : STM32L4 Discovery kit IoT node
 - Program and use a RS232 serial link on
 - Previously used NUCLEO-L476RG and L475 IoT Node Discovery Board

1. Introduction to the UART I/F Introduction on NUCLEO-L476RG
2. Introduction of L475 IoT Node Discovery Board
3. Introduction to the UART I/F Introduction on L475 IoT Node Discovery Board

Download PDF

Step 4: Sensors usage with B-L475E-IOT01A  pdf

The purpose of this tutorial is to explain how to get measurements using sensors available in the STM32L4 Discovery kit: a step-by-step configuration for a temperature sensor of
B-L475E-IOT01A will be described.

Use of sensors on B-L475E-IOT01A
1.
 Hardware description
2. Example: get temperature values using HTS221 sensor and display them in a terminal

Appendix: Porting SW4STM32 example to TrueSTUDIO
1.
 Overview of the selected example and hardware
2. Firmware execution steps: focus on porting the example to TrueSTUDIO

Download PDF

Step 5: Build an IOT system pdf

This tutorial shows how to program and use the Bluetooth interface to perform data communication in between the STM32L4 Discovery kit IoT node (B-L475E-IOT01A) and an Android application running on a mobile.

1. STM32 programming
2. Installing the Android application on a mobile

Download PDF

×