Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STM32WB55] power consumption about STOP2 #87085

Open
LucienKUANG-vip opened this issue Mar 14, 2025 · 1 comment
Open

[STM32WB55] power consumption about STOP2 #87085

LucienKUANG-vip opened this issue Mar 14, 2025 · 1 comment
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32

Comments

@LucienKUANG-vip
Copy link

Describe the bug
When developing a BLE application with the STM32WB, I found that the power consumption in STOP2 low-power mode is higher than what is stated in the official documentation. In STOP2 mode, the average current is around 75 µA.
However, the official documentation STOP2 status that the average current can reach approximately 2.1 µA.

To Reproduce

  1. using the demo :C:\Users\user name\zephyrproject\zephyr\samples\boards\st\power_mgmt\stm32wb_ble and using NUCLEO-WB55.
  2. change the main.c
int main(void)
{
	int err;

	printk("Starting Beacon Demo\n");
	/* Initialize the Bluetooth Subsystem */
	err = bt_enable(bt_ready);
	if (err) {
		printk("Bluetooth init failed (err %d)\n", err);
	}

	/* Give time to bt_ready sequence */
	k_sleep(K_SECONDS(6));

	printk("BLE disable\n");
	err = bt_disable();
	if (err) {
		printk("Bluetooth disable failed (err %d)\n", err);
	}

	k_sleep(K_SECONDS(2));

	printk("BLE restart\n");
	/* Initialize the Bluetooth Subsystem */
	err = bt_enable(bt_ready);
	if (err) {
		printk("Bluetooth init failed (err %d)\n", err);
	}

	/* Give time to bt_ready sequence */
	k_sleep(K_SECONDS(6));

	printk("BLE disable\n");
	err = bt_disable();
	if (err) {
		printk("Bluetooth disable failed (err %d)\n", err);
	}

	//printk("Powering off\n");
	//sys_poweroff();
	while(1){
		k_sleep(K_SECONDS(2));
	}
	

	return 0;
}
  1. Compile, download, and then run to observe the Realtime current.
Image 5. When debugging the code, I found that the program does enter STOP2 mode. Image
  1. Can you help to check why the stop2 real time power consumption is abnormal?
@LucienKUANG-vip LucienKUANG-vip added the bug The issue is a bug, or the PR is fixing a bug label Mar 14, 2025
@henrikbrixandersen henrikbrixandersen added the platform: STM32 ST Micro STM32 label Mar 14, 2025
@FRASTM
Copy link
Collaborator

FRASTM commented Mar 14, 2025

Hi @LucienKUANG-vip

what is the current you are measuring ?
If this is the Vdd of the whole nucleo board, all the components are sinking current ( stlink part, rf, leds etc, not only the stm2wb55 mcu.
Can you measure current on the JP3 connector ?
"remove all jumpers on connector JP5 to avoid leakages between ST-Link circuitry and STM32WB device."

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32
Projects
None yet
Development

No branches or pull requests

4 participants