cancel
Showing results for 
Search instead for 
Did you mean: 

How to switch I2C pull up when STOP MODE 2 on STM32WLE

HDIA.1
Associate III

Hello,

I have a STM32WLE that works with the lora end_node project

I have a sensor that i power up with a mosfet when needed.

But during the time that the chip is sleeping i need to disable the internal I2C pullup (+30 uA more due to the fact that the VCC of the sensor don't control the internal pullup).

But when i call all the function that can possibly disable the PULLUP (via i2c functions or GPIO_DeInit) the sensor isn't responding even if i call MX_i2c_init()

Can someone help me

Thanks

1 REPLY 1
Strooom
Associate III

I want to help but your question is not clear…

Before going into stop2, set the IOs to analog, which has lowest power consumption.

After wakeup, re-initialize the I2C IOs by calling the related MSP init function.