STM32 MCUs
From FAQs to complete How-to articles, find useful articles on STM32 MCUs programming, troubleshooting, ecosystem, and product details.
cancel
Showing results for 
Search instead for 
Did you mean: 

Knowledge Base Articles

How to create a custom build setup in STM32CubeIDE

This article covers how to create a custom build setup to allow users to customize, modify, and add specific build settings for each file, folder, or project. Introduction Creating a custom build in STM32CubeIDE can be a powerful tool for developers...

BMontanari_0-1705600232962.png BMontanari_1-1705600232966.png BMontanari_2-1705600232967.png BMontanari_3-1705600232968.png

How to wake up the STM32U5 from STOP2 using LPUART

This article will show you how wake up the STM32U5 MCU from Stop 2 Low Power mode using the LPUART1 supplied by LSE or HSI Clock Source. By the end of this article, you will know the needed steps to properly set the LPUART, RCC and PWR peripheral reg...

566.jpg 567.png 569.png 571.png

Porting and using X-CUBE-EEPROM with any STM32

Summary  X-CUBE-EEPROM is an EEPROM emulation software package that works on a variety of STM32 MCUs. Upon downloading the package, there are premade examples that work with STMicroelectronics development kits. However, it is not obvious how you can...

Laurids_PETERSEN_0-1687869279217.png 2 porting.png Laurids_PETERSEN_1-1687869424399.png 4 flash interface.png

STM32 FDCAN running at 8 Mb/s on NUCLEO boards

Introduction Many customers requested to have FDCAN communicating at 8 Mb/s. We provide a GitHub hotspot that contains a simple project on several STM32 part numbers. The project allows for FDCAN to reach a bit rate of 8 Mb/s in the data phase. The ...

Laurids_PETERSEN_0-1728997194171.png SofLit_0-1728659214427.png SofLit_1-1728659326925.png SofLit_3-1728659591872.png
mƎALLEm by ST Employee
  • 4574 Views
  • 2 comments
  • 7 kudos

STM32H5: How to interconnect RCC clocks to timers

Introduction RCC clocks can be internally connected to timers. The points addressed here are the following: Finding which clock is connected to which timer.Finding how the clock is connected to a timer.Implementing this connection in STM32CubeMX. Thi...

2024-11-29 14_58_57bis-STM32H523_33xx, STM32H562_63xx, and STM32H573xx Arm_Sup_®__Sup_-based 32-bit MCU.png 2024-12-10 14_32_28bis-STM32H523_33xx, STM32H562_63xx, and STM32H573xx Arm_Sup_®__Sup_-based 32-bit MCU.png 2024-12-10 14_32_28Ter-STM32H523_33xx, STM32H562_63xx, and STM32H573xx Arm_Sup_®__Sup_-based 32-bit MCU.png 2024-12-10 14_32_28quarte-STM32H523_33xx, STM32H562_63xx, and STM32H573xx Arm_Sup_®__Sup_-based 32-bit MCU.png

Why NRST pin as GPIO mode is holding the MCU under reset

Introduction The NRST pin can be configured in GPIO mode and this is handy for small packages such as STM32C011 8-pin package. In this article, we explain the constraints and potential workaround of using NRST pin in GPIO mode. STM32C011D6Yx 8pin pa...

STea_1-1733827858859.png STea_0-1733847673174.png STea_2-1733828435310.png
STea by ST Employee
  • 1884 Views
  • 0 comments
  • 1 kudos

Troubleshooting bxCAN issues in Loop back mode on STM32 MCUs

Introduction As many know, CAN test mode is used for debug or test. One of the test modes is the CAN Loop back mode which is mainly used when only one CAN node is available, and the user needs to test the CAN functionality with no need to establish ...

SofLit_0-1733738092058.png SofLit_0-1733739357109.png
mƎALLEm by ST Employee
  • 1810 Views
  • 0 comments
  • 2 kudos

Injecting and handling ECC errors in STM32H7 flash memory

Summary This article provides practical steps showing how to inject and check single and double ECC errors in STM32H7 flash memory. Find attached to the article a ECC Flash project for testing purposes.  Introduction In the STM32H7 microcontrollers, ...

Laurids_PETERSEN_0-1730282566039.png Laurids_PETERSEN_4-1730283300046.png Laurids_PETERSEN_5-1730283318504.png Laurids_PETERSEN_6-1730283506754.png

Understanding VCONN in STM32 and TCPP USB Type-C® port protection

Introduction VCONN is a dedicated power supply pin in the USB Type-C® connector. It provides power to the cables electronics, such as e-markers (EMC), long cables with data repeaters, and VCONN-powered USB devices. It ensures proper power supply ...

FBL_0-1733410931461.png
FBL by ST Employee
  • 3604 Views
  • 0 comments
  • 1 kudos

How to calibrate the delay block with the OCTOSPI interface

Introduction The delay block is an independent peripheral integrated within an STM32 MCU, for example, an STM32U5. Its role is to introduce a phase shift relative to the input clock. The user application configures the phase of the output clock. This...

KDJEM1_0-1732889486131.png KDJEM1_1-1733238322003.png KDJEM1_3-1733238469964.png KDJEM1_5-1733238557266.png
KDJEM.1 by ST Employee
  • 1401 Views
  • 0 comments
  • 0 kudos

How to interpret and understand the STM32 RTC's sub second value

Introduction The goal of this article is to help readers make sense out of the RTC_SSR register, the RTC’s sub second value (SS), and the second fraction equation. This article uses the STM32L476xx MCU and its reference manual RM0351 as an example, b...

p1. RM0351 RTC_SSR register.PNG p2. RM0351 RTC synchronization.PNG p3. RM0351 RTC_PRER register.PNG p4. RM0351 RTC_PRER register equations.PNG
nk1 by ST Employee
  • 1560 Views
  • 0 comments
  • 1 kudos

How to manage fast role swap (FRS) in an STM32

Introduction The USB Type-C® and USB PD specifications revolutionized device connectivity by merging data transfer and power delivery for up to 240 W (with EPR in USB PD 3.1). A key feature, fast role swap (FRS), allows a power supplying device quic...

FBL_0-1734086192535.png FBL_0-1733132662609.png
FBL by ST Employee
  • 1379 Views
  • 0 comments
  • 0 kudos

How to find STM32 board schematics

Introduction Many STM32 users start their development based on one of ST boards either to evaluate the STM32 MCU or to get the proof of concept of their application. One of the first steps to do in the evaluation process is to look at the board schem...

SofLit_0-1733493248349.png SofLit_1-1733493376115.png SofLit_0-1732621992709.png SofLit_1-1732622009268.png
mƎALLEm by ST Employee
  • 8205 Views
  • 0 comments
  • 6 kudos