We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all! I try to implement a Virtual Com Port with eval board MCBSTM32. I started with the HID example provided in the download area. There are two interfaces: I0: bulk in + bulk out with max. packet size = 64k, I1: interrupt in
So far everything works fine: I can connect my device to host and open Com port with TeraTerm. Additionally I can write data to host (less or more than maxPacketSize=64k) and also receive one byte. But after the first transmission (in both directions) usb does not seem to work any more, i.e. ISR for bulk(in)-endpoint is not called when I write data to it.
Any help would be appreciated.
> I started with the HID example provided in the download area.
This one? "STM32 USB HID (Human Interface Device) Example" http://www.keil.com/download/docs/361.asp
> EPxwrite
Is it your custom function? Aren't USB_WriteEP() / USB_ResetEP() (usbhw_STM32F10x.c) enough?
> also provides an example from ST for the virtual com port.
Surely, KEIL example is much better than ST's.
Tsuneo
Auu.. copy mistake.
s/ USB_ResetEP / USB_ReadEP/
Hi Tsuneo,
of course I use USB_ReadEP, USB_WriteEP, ... sorry, my misstake.
The HID example I started from is that from http://www.keil.com/download/docs/361.asp, you are right.
Surely, KEIL example is much better than ST's. Does KEIL also provide an example for VCP? Or do you mean the HID one?
Andi