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 use the input capture feature

Introduction  Input capture is one of the advanced timer features available on the STM32 microcontrollers. This article guides you through the theoretical aspects of input capture, provide a practical example, and discuss troubleshooting common issu...

clock configuration.png input capture mode.png TIM2 configuration.png TIM2 interrupt.png
Sarra.S by ST Employee
  • 33011 Views
  • 6 comments
  • 5 kudos

FAQ: Using dead battery pins in an STM32 with an integrated UCPD

Introduction Dead battery configuration control (DBCCx) pins play a crucial role in USB Type-C® applications to manage scenarios where the device's main power source is unavailable (dead battery). These pins, used with configuration channel (CC) pin...

FBL_3-1725455948265.png FBL_4-1725455948270.png FBL_5-1725455948294.png
FBL by ST Employee
  • 2106 Views
  • 0 comments
  • 3 kudos

How to integrate the X-CUBE-MEMS1 package with your project

Summary      The article offers an in-depth demonstration of incorporating the X-CUBE-MEMS1 software package into an STM32CubeIDE project, tailored specifically for the B-U585I-IOT02A board with its onboard ISM330DHCX accelerometer. Introduction T...

BMontanari_4-1725298070140.png BMontanari_5-1725298129333.png BMontanari_6-1725298166170.png BMontanari_7-1725298415774.png

How to add external libraries in STM32CubeIDE

Summary This article shows how to integrate a library, in the form of an achieve file (*.a) in your project, so you can use the functions of the library with a simple header file.  Introduction A library can be defined as a set of nonvolatile resour...

BMontanari_0-1705353822184.png BMontanari_1-1705353822195.png BMontanari_2-1705353822203.png BMontanari_3-1705353822221.png

How to run a CoreMark® benchmark on an STM32

Introduction This article guides you on how to perform CoreMark® benchmarks on an STM32H5 microcontroller. For this article, we use a NUCLEO-H563ZI board, which has an STM32H563ZIT6 MCU that integrates an Arm® Cortex® M33 CPU. This code can be easily...

Lionking_0-1722899611311.jpeg Lionking_1-1722899690190.png Lionking_2-1722899690202.png Lionking_4-1722899690217.png
Lionking by ST Employee
  • 4614 Views
  • 0 comments
  • 1 kudos

How to run a Dhrystone/DMIPS benchmark on an STM32

Introduction This article guides you on how to perform Dhrystone tests on an STM32L5 microcontroller. For this article, we use a NUCLEO-L552ZE-Q board, which has an STM32L552ZET6QU MCU that integrates an Arm® Cortex® M33 CPU. This code can be easily ...

Lionking_0-1722898420188.jpeg Lionking_1-1722898420198.png Lionking_2-1722898420209.png Lionking_3-1722898420221.png
Lionking by ST Employee
  • 5563 Views
  • 0 comments
  • 1 kudos

How to conduct a STM32 self-schematic review PT. 2

In this two-part article we will cover several main areas of focus when conducting a self-review of a custom STM32 schematic and share some hardware debugging tips.If you haven’t yet reviewed the first part of this article, we highly encourage you to...

995.png 996.png 998.png 1000.png

How to set USB CDC line coding

1. What is line coding? Line coding is used to transfer parameters of UART interface, which is emulated using USB CDC - Virtual COM port. In STM32 legacy USB library is line coding handled in file usbd_cdc_if.c, function CDC_Control_xS(FS for Full Sp...

DMA is not working on STM32H7 devices

The problem is related to two things: memory layout on STM32H7 and internal data cache (D-Cache) of the Cortex-M7 core.  In summary these can be the possible issues: Memory placed in DTCM RAM for D1/D2 peripherals. Unfortunately, this memory is used ...

698.png 700.png Laurids_PETERSEN_0-1690194613355.png 701.png

Debugging in external memory on STM32CubeIDE

Introduction This article describes how to debug in external memory on STM32CubeIDE based on the example provided in the following GitHub repository: STM32CubeH7/Projects/STM32H7B3I-EVAL/Applications/ExtMem_CodeExecution.Regarding hardware, we use th...

Pape_0-1722844618104.png code change.png Pape_2-1722845880991.png Pape_3-1722845895581.png

ADC value affected by ETH PHY 50 MHz from RMII interface

Ethernet reference clock affecting ADC values in STM32 microcontrollers In various STM32 microcontroller applications, the Ethernet reference clock (ETH_REF_CLK) has been observed to introduce noise into ADC (analog-to-digital converter) measurements...

STea_0-1720793800459.png STea_1-1720793848676.png
STea by ST Employee
  • 1839 Views
  • 1 comments
  • 2 kudos

Handling multiple TCP clients on STM32H563 with NetX Duo

Summary In this article, we guide the users of the Azure NetX Duo middleware to handle multiple TCP clients on the STM32H563 microcontroller as an example.  This guide is divided into two parts: Handling multiple clients on the same portHandling mult...

STea_6-1720537723656.png STea_0-1720535182402.png STea_5-1720537622676.png STea_4-1720537595677.png
STea by ST Employee
  • 4485 Views
  • 0 comments
  • 5 kudos

Tips for using STM32 low-power modes

Introduction For those developing applications that use low-power modes, trying to achieve the current consumption numbers listed in the datasheet and performing general debugging can be troublesome. The purpose of this article is to give an overall...

MCUSupportTD_0-1702918556927.png MCUSupportTD_1-1702918713976.png MCUSupportTD_0-1702918956534.png MCUSupportTD_1-1702919543374.png

FAQ: How to configure FIFO with the OCTOSPI interface

Maximum FIFO size with the OCTOSPI interface The FIFO is sized into the targeted product, typically either 32 or 64 bytes depending on the product. Refer to the reference manual to check the maximum size in the "FIFO and data management" section. Co...

KDJEM.1 by ST Employee
  • 1280 Views
  • 0 comments
  • 2 kudos