cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual COM Port ?

antonius
Senior
Posted on February 19, 2014 at 01:58

Guys,

I have installed STM Virtual COM Port on my computer,

But everytime I connect the board via USB cable, window says ''USB device is not recognized''

What shall I do to fix it ?

Thanks
15 REPLIES 15
zeros_and_ones1991
Associate III
Posted on February 19, 2014 at 05:39

I do not have that board , but i believe u should first check ur device manager n see if u really have that COM port installed , and check the jumpers on the board ..... I had similar situation with my Jlink emulator n it ended up with me reprogramming it.

chen
Associate II
Posted on February 19, 2014 at 10:11

Hi

The problem is most likely to be the device NOT the host driver.

What code are you running on the device?

Try the demo example for USB CDC device.

antonius
Senior
Posted on February 19, 2014 at 11:00

do you mean :

STM32_USB-FS-Device_Lib_V3.3.0 and Project

Virtual_COM_Port

I tried it already and it didn't work, any other clues ?

chen
Associate II
Posted on February 19, 2014 at 11:40

Hi

''do you mean :

STM32_USB-FS-Device_Lib_V3.3.0 and Project

Virtual_COM_Port''

Yes, but I could not find that version of the USB library on the ST web site (OK I did not look very hard).

I found the V4 :

http://www.st.com/web/en/catalog/tools/PF258157

This is a generic library that may or may not have a project for the dev board that you have.

If there is no project for the dev board that you have, then it is then up to you (the developer) to port the library code correctly to the dev board.

Your problem is that you have 2 unkwons : the Host USB VCP driver and the device USB CDC implementation.

I am saying - try to reduce the unknowns down to 1 by using a known USB device implementation.

What dev board are you using?

antonius
Senior
Posted on February 20, 2014 at 08:12

I created my own dev board,

Is it possible I used blank STM32 with Virtual COM port?

I want to upload dfu file for uCLinux.....but can not connect with USB,

or there are other alternatives ?

antonius
Senior
Posted on February 20, 2014 at 08:27

Virtual Com Port has been installed

C:\Program Files (x86)\STMicroelectronics\Software\Virtual COM Port Driver

but window can't use it, even I plug in the board ??

chen
Associate II
Posted on February 20, 2014 at 10:17

''Is it possible I used blank STM32 with Virtual COM port?''

No, do not be stupid! How can a un-programmed STM32 do anything, let alone enumerate and communicate over USB.

''I want to upload dfu file for uCLinux''

Yes, that is possible. Have you read the application note on the DFU?

Have you read the reference manual section about boot up options (hint - BOOT0).

''Virtual Com Port has been installed''

''but window can't use it, even I plug in the board ??''

Do not be stupid ! If you have a blank board (not starting in DFU) - how can it enumerate and communicate over USB. THERE IS NO PROGRAM.

Posted on February 20, 2014 at 13:21

With BOOT0=High you should be able to see the device attach in DFU mode on the PC, if it doesn't then your USB implementation is flawed. The DFU demo should include any required drivers.

You other alternates to download code on the part are via SWD/JTAG, or USART1/3
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
antonius
Senior
Posted on February 21, 2014 at 00:54

How can I download *.dfu via jtag ?

I have two files to upload :

Tiny_kernel_boot_loader.hex and

uClinux_on_stm32-MCU_Flash.dfu

Could you please read the release notes attached ?

What's the relation between *.dfu and *.hex, usually I uploaded *.hex only via J-Link...

Any enlightment ? thanks

________________

Attachments :

Release_Notes.html : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0HA&d=%2Fa%2F0X0000000bad%2F2RyT2Ve2FzuOwKFM1jJCkL97kSmkS_kn.ldSnoscSkg&asPdf=false