2023-11-09 03:34 AM
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".
Solved! Go to Solution.
2023-11-09 05:04 AM
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?
2023-11-09 05:04 AM
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?
2023-11-09 05:07 AM
No,
I want to know how to turn off the peripherals before going to stop mode
2023-11-09 05:50 AM - edited 2023-11-09 05:53 AM
DeInit the uart pins with this command
example:
HAL_UART_DeInit(&huart1);
... Other turn off commands