cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G0 USART wakeup implementation for an existing HAL project

Gaston
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions
Mike_ST
ST Employee

Hello,

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

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

View solution in original post

1 REPLY 1
Mike_ST
ST Employee

Hello,

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

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