cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB35 drain more current in OFF mode than in STOP2

oga
Associate III

I 've made a realy simple app for test

I'm using only 1 i2c and 1 spi and 1 gpio as input and 2 as output

I've set all unused gpio to analog to lower current

after init it starts advertising and goes in STOP2 mode for 10 sec

oga_0-1725024140110.png

I can see after the boot around 10µA of minimal current with spikes every 800ms witch is my advertising period

after 10sec RTC wakes up CM4 it cancel advertising and goes OFF

oga_1-1725024377260.png

but when it goes off it draws around 1mA and some time with litles spikes

oga_2-1725024525219.png

to solve I've try several things when entering OFF mode in PWR_EnterOffMode :

- I've cut all clocks for spi/i2c/ipcc and and shut down C2 (CM0)

HAL_IPCC_DeInit(&hipcc);

HAL_I2C_DeInit(&hi2c1);

HAL_SPI_DeInit(&hspi1);

LL_AHB1_GRP1_DisableClock(LL_AHB1_GRP1_PERIPH_CRC);

LL_PWR_DisableBootC2();

- I've set all gpio to pull-down to avoid artifact on other of board's IC

- set all gpio as output and lock them using LL_PWR_EnableGPIOPullDown() to avoid relaxing gpio when going off

but I have no results and lacking of idea

If anyone has idea even if it looks goofy I'm listening attentively

huge tank's for reading until here

 

 

1 REPLY 1
STTwo-32
ST Employee

Hello @oga 

Could you please give more details about your exact configurations.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.