AnsweredAssumed Answered

STM32F207VGT6 OTG FS doesn't start

Question asked by ELIK on Aug 12, 2011
Latest reply on Aug 16, 2011 by zhang.vincent
Hello.I have a problem with starting OTG FS in Device mode.
I will try to adapt project example "STM32_USB-FS-Device_Lib_V3.3.0" for this STM32F-2 chip, but USB doesn't run.

For new chip I'll do next:
1. Prepare system_stm32f2xx.c file with ext. crystal 25mHz, 120mHz core, 48mHz for OTG module, flag "require 48mHz for USB is setted.
2. Change OTG FS clocking enable to next string:
    _RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_OTG_FS, ENABLE) ;

When I turn ON the clocking for OTG FS module by AHB2, the pin USBDP pulls up but, it looks like okey, but the counter part of HFNUM register (Upper word) will stay stopped. Is it good for this chip?

Because when I open the same project for STM32F107RCT6 chip and look on this register after enable OTG clock, the counter in HFNUM will run.

Maybe problem is in USB clocking settings?
Can I do else for right setup USB clocking except preparing system_stm32f2xx.c?

This project maked on my target board.