cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32f407 vs stm32f415 vcp driver

totti001
Associate II
Posted on January 30, 2014 at 15:20

Hello everybody!

I've a working vcp driver for stm32f4discovery board(stm32f407vg). Use the standard st usb library. This is working well. If I change the device with an stm32f415 mikrocontroller, the code is running, but at the device manager I don't see the com port.

Is anybody have an idea what is the problem? The usb pins are the same.

Thanks

#usb-vcp-stm32
20 REPLIES 20
Posted on June 08, 2014 at 21:05

120 MHz is more indicative of an STM32F2 device. For the F4 at 168 MHz one would need to double check the regulator settings, and the flash wait states.

From SetSysClock()

    /* Enable high performance mode, System frequency up to 168 MHz */

    RCC->APB1ENR |= RCC_APB1ENR_PWREN;

    PWR->CR |= PWR_CR_PMODE;

..

    /* Configure Flash prefetch, Instruction cache, Data cache and wait state */

    FLASH->ACR = FLASH_ACR_ICEN |FLASH_ACR_DCEN |FLASH_ACR_LATENCY_5WS;

I am not using the new HAL/CUBE libraries at this time, and have no immediate plans to migrate given the very buggy state of current releases.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..