2016-06-03 08:32 PM
Hi everybody,
I got a problem to implement USB CDC to STM32F407IG. Although looking into all the post here, still not solve my problem.I am using self-made board with STM32F407IGT6, The sch is simply connect asMCU USB connector
PA11 D-
PA12 D+without VBUS sensing.
This board working fine by loadtilz0R's
http://stm32f4-discovery.net/2014/08/library-24-virtual-com-port-vcp-stm32f4xx/
precompiled hex file. So I assume that the design/layout of hardware board is correct. Then I tried many kinds of setting under STM32CubeMx , with disable VBUS-sensing or even Connect PA9 to USB-VBUS on my hardware board. All fall to PC response ''unknown device'' when plug in to PC USB port.Do someone have experience on similar situation?
My developing environment is
- MCU: STM32F407IGT6- STM32CubeMX V4.15.0. to generate USB_FS_CDC code- MDK-ARM V5 - WIN7btw, by STM32CubeMx to generate code for my another board which used STM32F103 is working fine. I am still wondering what the difference between STM32F407. Although I tried to have same pull-up 1.5K resistor forSTM32F407 board as
STM32F103 board did, still fail (or get worse).
2016-06-08 06:20 AM
Hi chen.frank.003,
You would check the clock setting and if the USB is getting correctlyh 48 MHz. You can refer to the clock tree of the reference manual and USB/CDC example in STM32CubeF4. -Hannibal2016-06-23 08:35 PM
Thanks, Hannibal.
After review that system clock setting. And sure that USB has 48MHz clock frequency. But found that I set system clock source from HSI and get only Max.16MHz for whole system, except USB is 48MHz (cause it's clock source is from PLLCLK).Anyhow , my board is working fine with CDC now after change system clock to PLLCLK.Thanks a lot.