Skip to main content
vchau.2
Associate III
November 9, 2023
Solved

Stop mode in STM32G0

  • November 9, 2023
  • 3 replies
  • 2164 views

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".

This topic has been closed for replies.
Best answer by Sergen

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?

3 replies

SergenBest answer
Associate III
November 9, 2023

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?

vchau.2
vchau.2Author
Associate III
November 9, 2023

No,

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

Associate III
November 9, 2023

DeInit the uart pins with this command 

example:

HAL_UART_DeInit(&huart1);

... Other turn off commands