2024-08-30 06:46 AM
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
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
but when it goes off it draws around 1mA and some time with litles spikes
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