cancel
Showing results for 
Search instead for 
Did you mean: 

Stop mode in STM32G0

vchau.2
Associate III

Dear All,

I'm using stm32G0 MCU for battery operated application and I2C,  UART and RTC and GPIO are using 

I want know What should be peripheral state before going to STOP mode mean "should be deinit before going to stop mode or leave it as it is and reint all peripheral after wakeup".

1 ACCEPTED SOLUTION

Accepted Solutions
Sergen
Associate III

Mr chau.2 I don't understand, but before turning off the MCU, do you want to check the status of the peripherals in the MCU and then turn it off?

View solution in original post

3 REPLIES 3
Sergen
Associate III

Mr chau.2 I don't understand, but before turning off the MCU, do you want to check the status of the peripherals in the MCU and then turn it off?

No,

I want to know how to turn off the peripherals before going to stop mode

Sergen
Associate III

DeInit the uart pins with this command 

example:

HAL_UART_DeInit(&huart1);

... Other turn off commands