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
chen
Associate II
Posted on January 30, 2014 at 15:55

Hi

'' 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.''

The VCP driver is the PC driver for USB CDC device. It should be the same no matter which STM32 is implementing the USC CDC device.

The problem is the stm32f415 microcontroller  and the code implemening the USB CDC.

You will have to give more details to get more help.

totti001
Associate II
Posted on January 30, 2014 at 16:02

So I have a stm32f4discovery board, and coide project for vcp communication. It is working well.

I have a mikroe Mini-M4 with stm32f415rg controller. I change the project settings(clock config etc) for this board, compile, download. The code is running, but in the device manager there is no com port. I have no idea what is the problem.

Posted on January 30, 2014 at 16:09

I'm not clear what you're doing here. You're changing the chip on the discovery board, or you've got some other unspecified board with a 415 on it? I've got schematics for the DISCO, you'll need to cite some for any other board.

If you're convinced it's not the pins, make sure the clocks (HSE, PLL, PLLQ) are in fact the same and correct.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
chen
Associate II
Posted on January 30, 2014 at 16:11

Hi

''I have a mikroe Mini-M4 with stm32f415rg controller''

Start by checking which pins the USB port/connector this board uses.

Download the reference manual for this processor and check the right port bits are used for the USB peripheral.

Posted on January 30, 2014 at 16:14

Crossed on the wire there...

Ok so it's got a 16 MHz HSE, not 8 MHz

Are you replacing the boot loader, and everything else with your VCP code?

The VCP configuration is using the right USART and pins?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
totti001
Associate II
Posted on January 30, 2014 at 16:23

Yes I change the clock setups for 16MHz. The driver not use UART pins, I use vcp for communicate with pc and the board. 

So I change the system_stm32f4xx.c and at the stm32f4xx.h change the hse value.

Next I change the project config for chip stm32f415. Compile the project and download it. But not working.

chen
Associate II
Posted on January 30, 2014 at 16:31

Hi

You are now using a different board. You have assumed that the USB peripheral on the STM32F415 will use the same port pins.

Check which port pins are used on the new board.

Change the firmware if the port pins are different.

totti001
Associate II
Posted on January 30, 2014 at 16:37

USB pins are the same I check this.

chen
Associate II
Posted on January 30, 2014 at 16:46

Hi

Does the PC see anything when you plug new board in?

Does the PC show USB device - unknown or bad device?