STM2WBA65RI Low-Power Mode (STOP2)
Hello,
I am currently using the STM32WBA65RI development kit and exploring its low-power modes. I have run the STOP2 mode example and, according to the datasheet, the current consumption in this mode should be around 5 µA.
However, I am measuring the current using an external power supply with measurement capabilities (SMU), powering the board through JP2 pin 1 as specified in the user manual. In this setup, I observe a current consumption of approximately 300 µA while in sleep. Could you help me understand why there is such a large discrepancy? What steps are required to achieve the ~5 µA consumption stated in the datasheet?
I also have a few additional questions regarding this mode. In the example, the function
HAL_PWR_EnterSTOPMode(PWR_MAINREGULATOR_ON, PWR_STOPENTRY_WFI) is used, but it is not clear where STOP2 mode is explicitly selected. According to the official documentation, there are also STOP0 and STOP1 modes, which adds to my confusion.
Additionally, I have seen examples where the RTC is used as a wake-up source, and the HAL SysTick is suspended to prevent unintended wake-ups. Is this step necessary?
HAL_RTCEx_SetWakeUpTimer_IT(&hrtc, 0x4E20, RTC_WAKEUPCLOCK_RTCCLK_DIV16);
/* Suspend the SysTick interrupt before entering STOP mode to prevent wake-up */
HAL_SuspendTick();
Finally, I am considering integrating ThreadX. Is it possible to achieve the same low-power behavior when using an RTOS? What changes would be required to maintain similar functionality? I have also come across discussions suggesting that low-power modes with an RTOS can cause issues such as tick desynchronization. What is the expected current consumption when using an RTOS in this context?
Best regards.
