Skip to main content
Gaston
Associate III
August 10, 2021
Solved

STM32G0 USART wakeup implementation for an existing HAL project

Hi,

Months ago I developed a complete project using HAL libraries for the STM32G030K8T microprocessor. Now I need to implement a low power (STOP0) mode and wake-up it from deep sleep using USART. The point is I am facing the following problems:

  • My project is using the PLLCLK as system clock from HSI RC given a final HCLK of 64MHz. How could I restore this HCLK after the wake-up?
  • I use HAL libraries for the first time and I only find examples written using LL libraries. This result in some Incompatibilities. For example I cannot use HAL_Delay() as usual and I have to use LL_mDelay() instead. Both of them cannot live together? Why?
  • Is there some example using USART (not LPUART) and HAL (not LL) libraries for this STM32G030K8T? I'm not able to find it.

Thanks in advance,

gaston

This topic has been closed for replies.
Mike_ST
Mike_STBest answer
ST Technical Moderator
August 10, 2021

Hello,

you should be able to find HAL examples in the STM32G0 firmware package:

https://www.st.com/en/embedded-software/stm32cubeg0.html

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. 

1 reply

Mike_ST
Mike_STBest answer
ST Technical Moderator
August 10, 2021

Hello,

you should be able to find HAL examples in the STM32G0 firmware package:

https://www.st.com/en/embedded-software/stm32cubeg0.html

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.