2026-04-08 5:36 AM - last edited on 2026-04-09 4:42 AM by Andrew Neil
Title edited to clarify that this refers to a NUCLEO-WBA65RI board.
Hello,
I am currently using STM32WBA65RI with Standby mode. According to datasheet, this mode should be able to reach 120nA current consumption with the 16 GPIO wake-up pins (RTC disabled). However running the Standby example and shutting down the RTC I am still getting 3uA of current consumption. What can I do to decrease the current consumption up to the nanoA?
Best regards.
2026-04-08 6:53 AM
Please give full details of your test setup - schematic, code, etc.
See: How to write your question to maximize your chances to find a solution
2026-04-08 8:15 AM
Hello,
I am using the STM32WBA65RI Dev Kit. For current measurements, I am powering the board with an external supply that includes current measurement capability, connected directly to pin 1 of JP2. The JP4 jumper is removed.
According to the reference manual (Table 54), there are expected current consumption values for Standby mode (with RTC enabled and IWDG disabled).
I performed four tests with the following configurations:
However, my measured current is consistently higher than the specified values:
My code is based on the ST example “Standby with RTC”, with the addition of enabling the ULPMEN bit in the PWR_CR1 register.
int main(void)
{
HAL_Init();
SystemClock_Config();
MX_GPIO_Init();
MX_ICACHE_Init();
MX_RTC_Init();
SystemPower_Config();
CLEAR_BIT(DBGMCU->SCR, DBGMCU_SCR_DBG_STANDBY);
/* Check and handle if the system was resumed from StandBy mode */
if(__HAL_PWR_GET_FLAG(PWR_FLAG_SBF) != RESET)
{
/* Clear Standby flag */
__HAL_PWR_CLEAR_FLAG(PWR_FLAG_SBF);
}
SET_BIT(PWR->CR1, PWR_CR1_ULPMEN);
/* Insert 5 seconds delay */
HAL_Delay(5000);
/* Enable wakeup line 7 for RTC */
HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN7_HIGH_3);
HAL_RTCEx_DeactivateWakeUpTimer(&hrtc);
/* Clear all related wakeup flags */
__HAL_PWR_CLEAR_FLAG(PWR_WAKEUP_ALL_FLAG);
/* Re-enable wakeup source */
if (HAL_RTCEx_SetWakeUpTimer_IT(&hrtc, 0xFFFF, RTC_WAKEUPCLOCK_RTCCLK_DIV16, 0) != HAL_OK)
{
Error_Handler();
}
/* Enter the Standby mode */
HAL_PWR_EnterSTANDBYMode(); Also, my goal was to sleep for 1 minute, and then wake-up and do BLE advertise for 10 seconds. And so on. How can I integrate the BLE stack here to accomplish this?
Best regards.
2026-04-08 8:27 AM
@JPortilha wrote:I am using the STM32WBA65RI Dev Kit. .
Which one - NUCLEO-WBA65RI or STM32WBA65I-DK1 ?
You need to carefully check the schematics for all potential sources of leakage - in particular, connections to the ST-Link.
Your difference is on the order of only 400nA - it really doesn't take much leakage at all to make that !
2026-04-08 8:31 AM
I am using the NUCLEO-WBA65RI. According this this image, I am powering the MCU directly so the ST-Link below should be totally disconnected (I assume)
Also, do you have any insights on how to integrate BLE advertise with this standby mode?
2026-04-08 9:04 AM - edited 2026-04-09 4:05 AM
@JPortilha wrote:According this this image, I am powering the MCU directly so the ST-Link below should be totally disconnected (I assume)
I think not: The ST-Link is still connected - just not powered.
Again, check the schematics to be sure.
@JPortilha wrote:do you have any insights on how to integrate BLE advertise with this standby mode?
That's a separate question - please start a separate thread for that.
PS:
New thread: STM32WBA65RI BLE Advertise with Standby Mode
2026-04-08 9:59 AM
From the schematics analysis I could not figure out any point to where the current could be leaking. Can it be a software problem? Are the results presented on the datasheet accurate enough?
BR.
2026-04-09 4:13 AM
What about all these connections (from the User Manual):
Again, it's only tiny amounts of current you're talking about!
Maybe try removing the MCU RF board (MB2130) from the mezzanine board (MB1801) ?
2026-04-09 8:35 AM
Hello, I have removed the MCU board (MB2130), and I am powering up via CN4 pins. I have shunted the necessary solder bridges underneath the board I got these results while in stanby mode.
I can´t figure out what are those negatives spikes. The average value should be around the nano amps scale, but again not the 330nA at 1.8V specified in the datasheet.
BR
2026-04-09 8:52 AM
I don't know.
What are you measuring with?
A schematic and some good, clear photos would help to fully describe the setup.
Is the chip waking up periodically - something just under 1s ?
What is the average current between the spikes?
Remember that the datasheet figure is purely internal to the chip, so you will never achieve that in practice: there will always be some leakage due to external components - capacitors, etc...