Application note

How to tune touch sensing applications on STM32 MCUs

Rev 8 - February 2025

Introduction

This document provides guidelines on how to tune touch sensing applications on MCUs, with the STM-Studio tools (STM-STUDIO-STM32).

This application note details a methodology to configure the STMTouch library parameters, and shows how to trim firmware parameters and adjust hardware components to optimize the application performance. All values given in this document are for guidance only (refer to the related datasheet to get guaranteed values).

STMicroelectronics is providing free STMTouch touch sensing firmware libraries, directly integrated into the corresponding STM32Cube package (such as STM32CubeL4).

Table 1. Applicable products
TypeProduct series
Microcontrollers
  • STM32F0 series, STM32F3 series
  • STM32L0 series, STM32L1 series, STM32L4 series, STM32L4+ series, STM32L5 series
  • STM32U0 series, STM32U3 series, STM32U5 series
  • STM32WB series, STM32WBA series

STM-Studio overview

The STM-Studio tools are free software to debug and diagnose Arm®-based STM32 microcontrollers running applications, by reading and displaying their variables in real-time.

Running on a PC with Windows operating system, the STM-Studio tools interface with the MCU via standard development tools such as ST-LINK/V2. These STM-Studio tools are non-intrusive, preserving the real-time behavior of the applications and they perfectly complement traditional debugging tools to fine tune the applications.

The STM-Studio tools are especially well suited for debugging applications that cannot be stopped, such as motor control.

Different graphic views are available to match the needs of debugging and diagnosis or to demonstrate the application behavior. The STM-Studio tools work with STM32 microcontrollers through JTAG or SWD (serial wire debug) interface.

Refer to the STM-STUDIO-STM32 release note (RN0058) and to the user manual.

Getting started with STM-Studio (UM1025) for more details.



Note: Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.