Skip to main content
Associate II
Aug 31, 2023 12:05 PM UTC
Solved

USB INETRFACE OSCILLATOR

Hi , 

I am using STM32L072CBT6 for my project and I need USB interface. 

Is there any option to drive USB using HSI_RC ? 

Also we are using STANDBY_WITH_RTC for low power mode. 

Is there any way to wake up the system from low power mode using USB ?

This topic has been closed for replies.
TDK
TDKBest answer
Aug 31, 2023 2:24 PM UTC

As stated in the reference manual, crystal-less USB requires you to use the HSI48 clock. On the CubeMX clock select screen, this is the "RC 48 MHz" clock.

TDK_0-1693491920140.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."

5 replies

TDK
Aug 31, 2023 12:23 PM UTC

> Is there any option to drive USB using HSI_RC ? 

Yes, the STM32L0x2 series supports crystal-less USB. Look at the Clock Recovery System in the reference manual.

> Is there any way to wake up the system from low power mode using USB ?

USB interrupts can be used to wake the system from most low power modes.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Deepu joyAuthor
Associate II
Aug 31, 2023 1:31 PM UTC

My issue is not solved. Please check the attached images of CUBEMX CLOCK Configuration. 

TDK
Aug 31, 2023 1:46 PM UTC

Attach your IOC.

"If you feel a post has answered your question, please click ""Accept as Solution""."
TDK
TDKBest answer
Aug 31, 2023 2:24 PM UTC

As stated in the reference manual, crystal-less USB requires you to use the HSI48 clock. On the CubeMX clock select screen, this is the "RC 48 MHz" clock.

TDK_0-1693491920140.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."