Getting started with STM32 : STM32 step by step

Revision as of 00:40, 14 May 2020 by Registered User
Under construction.png Page under construction

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!

1. Step 1: Pre-requisites

Clock.png 45min
Install the main tools to program STM32 and run a first example:
1. Install STM32CubeMX
2. Install STM32CubeIDE
3. Install STM32CubeProg
4. Download STM32CubeL4 Firmware package
5. Launch STM32CubeIDE in debug mode and run my first program

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

Clock.png 30min
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

3. Step 3: UART and new board introduction

Clock.png 12min
With this module, you will:

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

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

Clock.png 60min
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.
1. Sensors usage with B-L475E-IOT01A
1.1 Hardware description
1.2. Example: Get temperature values using HTS221 sensor and display them on terminal

2. Appendix: Porting an AC6 example to STM32CubeIDE
2.1 Hardware description
2.2 Example: Get temperature values using HTS221 sensor and display them on terminal

5. Step 5: Build an IOT system

Clock.png 30min
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. Import and convert the HeartRate project from the STM32Cube package
2. Build and execute the HeartRate Project
3. Install the Android application on a mobile
4. Connect to the IoT node