Tagged: Power saving

STM32 power saving: RTC backup register and SRAM preservation 0

STM32 power saving: RTC backup register and SRAM preservation – 9

In this article, we finally delve into the backup domain, a crucial step towards resolving the issue of state preservation across sleep modes. We initiate with a comprehensive exploration of the RTC backup registry, subsequently moving onto an analysis of the backup mechanisms for SRAM memory.

STM32 power saving: backup domain intro, and variable preservation across reset

STM32 power saving: backup domain intro and variable preservation across reset – 8

Another important element of STM32 is the backup domain. After a brief introduction to the topic, we will evaluate and test the standard solution for RESET, namely the use of variables in the “noinit” and “persistent” memory areas, a very interesting management. And we will write some simple functions to check the features of our devices.

STM32 power saving: intro and Arduino vs STM framework 0

STM32 power saving: intro and Arduino vs STM framework – 3

In a remote device, one important feature can be the power consumption, and like other devices, STM32 allows a set of Low Power states.
In the Arduino framework, these states are wrapped and simplified to allow the most straightforward management, but we will look at the original state of STM32 to better understand the test results.

STM32F4 black pill power saving: manage clock frequencies 0

STM32 Power saving: STM32F4 black-pill manages clock and frequencies – 2

An essential factor of our micro-controllers is power consumption. As usual, I started to analyze that aspect without entering the detail for sleep mode but with some alternative solutions offered by the micro controller.
Now we are going to examine the management of clock frequencies of STM32F4 series.

STM32F1 blue pill power saving: manage clock frequencies 0

STM32 power saving: STM32F1 blue-pill manages clock and frequencies – 1

Mastering clock source and frequency management is vital in STM32 development. The STM32F1, or “Blue Pill,” provides several options to balance device performance and power saving. The STM32F1 sources its clock from an internal RC oscillator (HSI), an external crystal oscillator (HSE), or a Phase Locked Loop (PLL) that can amplify the HSI or HSE for higher frequencies. By carefully choosing and setting up these clock sources, you can greatly optimize your device’s power consumption.