Skip to main content
HDIA.1
Associate III
May 29, 2023
Question

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

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

This topic has been closed for replies.

1 reply

Strooom
Senior
June 7, 2023

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.