The X-CUBE-CLKTRIM Expansion Package illustrates the trimming of an HSE crystal oscillator in order to reach the high-accuracy frequency required by RF applications.
The STM32WB Series microcontrollers support low-power RF standards such as Bluetooth® Low Energy and IEEE 802.15.4. Bluetooth® Low Energy requires a minimum ±20 ppm RF clock accuracy while IEEE 802.15.4 accuracy requirement is ±40 ppm.
The STM32WL Series microcontrollers support sub-GHz RF standards such as LoRaWAN® and meet the requirements of a wide range of wireless applications for low-power wide area networks (LPWAN). For LoRaWAN® as well as for other LPWAN applications, the highest the RF clock accuracy, the best the RF performance.
STM32WB Series and STM32WL Series offer an efficient architecture with internal load capacitors that allow the fine tuning of the crystal frequency (32 MHz), saving the extra cost of additional external capacitors. Internal capacitance values are register controlled. They depend on various factors such as process variation, crystal, and PCB design and must therefore be set for each device individually.
The X-CUBE-CLKTRIM Expansion Package proposes three different trimming procedures (manual, automatic, and with STM32CubeMonitor-RF (STM32CubeMonRF)) that allow the once-for-all storage of the right capacitance values in OTP bytes. Each proposes two configurations: the trimming procedure itself and an implementation example of HSE clock initialization in RF applications.
The manual trimming procedure consists in measuring the RF clock with a precision frequency meter (better than 0.1 ppm). The RF clock frequency value is controlled through the user push-buttons so that the best clock accuracy can be calibrated step by step.
The automatic trimming procedure consists in providing a precision clock reference to the STM32 so that it can trim its RF clock frequency itself, without any user intervention needed.
The STM32CubeMonitor-RF trimming procedure consists in measuring the RF clock with a precision frequency meter (better than 0.1 ppm). The RF clock frequency value is controlled by means of STM32CubeMonitor-RF configurable scripts for calibrating the best clock accuracy step by step.
X-CUBE-CLKTRIM firmware is built on the HAL drivers and runs on the Nucleo boards of the STM32 Wireless MCUs (STM32WB Series only).
- High-speed external (HSE) crystal oscillator trimming
- Allows best RF performance for Bluetooth® Low Energy, IEEE 802.15.4, LoRaWAN® and LPWAN wireless applications
- Trimming parameters stored in user OTP Flash area
|Part Number||General Description||Software Version||Supplier||GitHub link||Download|
|X-CUBE-CLKTRIM||HSE trimming for RF applications using STM32WB Series software expansion for STM32Cube||2.0.0||ST||-|
MadeForSTM32™ is a new quality label delivered by ST, which is granted after an evaluation process. It helps engineers identify third party solutions with the highest level of integration and quality for the STM32 microcontrollers' ecosystem. MadeForSTM32™ is offered to members of the ST Partner Program who want to go one step further in our collaboration, with the overall objective of contributing to a high-quality STM32 ecosystem.
The STM32Cube.AI is an extension pack of the widely used STM32CubeMX configuration and code generation tool enabling AI on STM32 Arm® Cortex®-M-based microcontrollers.
The X-CUBE-VS4A Expansion Package consists of a set of libraries and application examples for STM32F7 Series microcontrollers acting as Alexa-enabled devices. It runs on the 32F769IDISCOVERY board, which provides a native Ethernet interface.