cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring clocking for STM32F479VI in order to run CDC_standalone and facilitate USB_HS_IN_FS.

JSkar.1
Associate II
 
3 REPLIES 3
JSkar.1
Associate II

I'm working with an STM32F479VI on a custom PCB. I've already set the HSE_VALUE to the frequency of my external Osc. I've been told however, that in order to use HS_IN_FS I also need to configure the PLL. The readme.txt also says something about setting a "USBCLK" variable, which I can't find. Because of how the MCU is broken out on the custom PCB, I have to use pins PB14 and PB15, the USB_OTG_HS pins, for my USB interface.

#1 Can I run HS_IN_FS without an external ULPI PHY chip?

#2 There are a lot of variables with "PLL" in them. Which ones do I set and where (I'm guessing in system_stm32f4xx.c)?

#3 Do I need to install any drivers on Windows 10 or 11 before the USB com port will enumerate, provided everything else is working?

I've been reviewing the documentation but because I'm using an example app that I didn't build up myself, I'm finding the learning curve a bit staggering and I've got a deadline coming up.

Any help would be greatly appreciated, thanks.

TDK
Guru

> #1 Can I run HS_IN_FS without an external ULPI PHY chip?

Yes, you can run the USB_OTG_HS peripheral in in full speed mode by using the internal FS PHY.

> #2 There are a lot of variables with "PLL" in them. Which ones do I set and where (I'm guessing in system_stm32f4xx.c)?

Run CubeMX with your chip for a good visualization of the clock scheme. You need to ensure the "48 MHz" clock is 48 MHz, which typically comes off of PLL1Q.

0693W00000Kb2lNQAR.png 

Typically clock settings are set in SystemClock_Config().

> #3 Do I need to install any drivers on Windows 10 or 11 before the USB com port will enumerate, provided everything else is working?

In theory, no. In practice, I have has to do so on some Win10 computers.

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

Thanks for the response. Valuable advice, especially that about the clocking tree.