2013-10-04 03:46 PM
I was checking out the usb virtual com port loopback example provided in STM32_USB-FS-Device_Lib_V4.0.0.
When I looked into the usb endpoint (usb_endp.c or usb_conf.h), it defines EP3 (OUT) and EP1(IN) as the endpoints for bulk data in and data out. I wonder if there's any reason using two endpoints instead of one? According to RM0038, there are 8 bi-direction endpoints or 16 single-direction endpoints for stm32l-discovery. Can't we combine the two single-direction endpoint of EP3 and EP1 into one bi-direction endpoint, just like the EP0 bi-directional endpoint? Is there any limitation doing this? Thanks a lot!2013-10-07 09:30 AM
Anyone? I've given it a try by setting both at EP1_IN and EP1_OUT as bulk endpoint, but the virtual com port example didn't work at all. Thanks.
2013-10-07 09:38 AM
Anyone?
Apparently no one with an answer.2013-10-07 02:38 PM
Thanks clive.
I didn't change the direction in the usb descriptor so it couldn't function at all. After I changed the descriptor file, the bidirectional bulk endpoint is working.