Skip to main content
Graduate
November 9, 2023
Solved

Stop mode in STM32G0

  • November 9, 2023
  • 2 replies
  • 2131 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?

    2 replies

    SergenAnswer
    Graduate II
    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.2Author
    Graduate
    November 9, 2023

    No,

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

    Graduate II
    November 9, 2023

    DeInit the uart pins with this command 

    example:

    HAL_UART_DeInit(&huart1);

    ... Other turn off commands