Skip to main content
SSing.10
Associate III
May 3, 2021 5:25 PM UTC
Solved

Is external crystal is needed for USB communication ?

Hi All,

I am working on the STM32F0 series for USB based application as Mass Storage Class and completed my initial testing on the NUCLEO-F767ZI board & POC's.

Further I have done & completed my custom hardware development, but I have didn't connect external crystal(DNP) on custom board.

Did I need to confirm that, external crystal is required in custom board developed to run the USB - Mass Storage Device ?

Looking forward for responses.

Thanks & Regards

Sachin

This topic has been closed for replies.
TDK
TDKBest answer
May 16, 2021 5:28 PM UTC
The STM32F730V8T6 requires an external crystal to satisfy USB timing requirements per the datasheet.
"If you feel a post has answered your question, please click ""Accept as Solution""."

5 replies

Tesla DeLorean
Guru
May 3, 2021 5:37 PM UTC

It is recommended to keep USB clock within specification. Without it you risk issues of connectivity related to temperature, or host system implementation. ie difference in clock offset between host and device exceed tolerances.

See if it is a check-box item for USB Certification

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
TDK
May 3, 2021 6:00 PM UTC

Some STM32F0 chips support crystal-less USB. Otherwise you need a crystal to adhere to timing requirements.

https://www.st.com/resource/en/application_note/dm00296349-usb-hardware-and-pcb-guidelines-using-stm32-mcus-stmicroelectronics.pdf

0693W00000ANCzRQAX.png

"If you feel a post has answered your question, please click ""Accept as Solution""."
SSing.10
SSing.10Author
Associate III
May 16, 2021 4:31 PM UTC

Ok I can see some STM32 MCU are having internal USB oscillator.

Please confirm and correct me if I am wrong in getting proper configurations & settings, I am currently using STM32F730V8T6 so does it require external oscillator for my usb related operations.

Please confirm me for the same.

TDK
TDKBest answer
May 16, 2021 5:28 PM UTC
The STM32F730V8T6 requires an external crystal to satisfy USB timing requirements per the datasheet.
"If you feel a post has answered your question, please click ""Accept as Solution""."
SSing.10
SSing.10Author
Associate III
Jun 9, 2021 5:37 AM UTC

Hi @TDK​ ,

Thanks for confirming the crystal requirement for STM32F730V8T6, I have assembled and it works.