hello , i am very new to usb program,i just read only usb doc for stm32f103xx controller but i didnt get anything.could you please guide me how to learn usb virtual com port programm and what are the things we needto have(like hardware and softwares). i also dowloaded the virtual comport drivers but my board is not detecting. please try to help me.its very important to me thanks in advance
> could you please guide me how to learn usb virtual com port programm and what are the things we needto have(like hardware and softwares).
USB is a typical complicated protocol stack, protocols on protocols. It's hard to realize fully to the extent in which you can make your own stack. It takes almost half an year for me, until I have made my own stack confidently.
a) Your own USB stack If you follow this route, start with an existing example. Try to decipher the stack source code, first. Unfortunately, Keil doesn't provide any CDC (Communication Device Class: virtual COM port) example for STM32F103. Here is ST's.
STM32F10x, STM32L1xx and STM32F3xx USB full speed device library (UM0424) v4.0.0 www.st.com/.../stm32_usb-fs-device_lib.zip
These references are available to know USB protocols better.
USB Made Simple http://www.usbmadesimple.co.uk
USB in a NutShell www.beyondlogic.org/.../usb1.shtml
Jan Axelson's USB Central http://www.lvr.com/usb.htm
And her book: USB complete http://www.lvr.com/usbc.htm
USB 2.0 Specification www.usb.org/.../usb_20_110512.zip
CDC spec on USB.org www.usb.org/.../CDC1.2_WMC1.1_012011.zip
b) a user of existing USB stack Most of people take this option ;-) Even for these users, above references are helpful, when (s)he comes across a problem.
c) a user of USB-UART chips This is the easiest option. FTDI, SiLabs, Prolific sell such a chip.
Tsuneo
I have spent hours on the internet trying to find a working driver. The broken links to ST's site don't help either (the site was redesigned recently according to a ST local field engineer I phoned). I eventually found the solution to be quite simple (as these usually are once you know the solution ;-).
Simply install the simplemac software from ST. It installs the required device driver without you even knowing it. What a relief!
If companies where a bit brighter, then they would keep old links working, with old read-only data and a popup saying: Our forum have moved. Press button for redirect.
But then all web pages, search engines etc all over the world would still be able to find the old problem solutions. And the company's own FAQ would point to the correct solutions.
It is quite embarrassing with all companies having FAQ pages that contains links to the solutions - and the link is to their own web server and to a now killed, older version, forum. All because it is so _cool_ to update the company profile and throw in a new forum solution developed by new consultants that wants $$$. Best is when they manage a solution with 500 character long links, that might even change depending on the phase of the moon.