2013-09-30 04:50 PM
I am trying to configure the STM32F103 to be a device on the USB. I used the Virtual_COM_Port as a starting point. My USB config is as follows:
-ep0=control-ep1=bulk OUT-ep2=bulk IN-ep3=interruptEP0, EP1 and EP2 seem to be functioning correctly, but EP3 has issues. From my USB monitor I can see an IN packet being sent from the host to the device's EP3, but the device does not respond. I have a 22 bytes message ready to go This is strange because it is initialized the same as EP2 except SetEPType(ENDP3, EP_INTERRUPT);My Reset routine and descriptors are attached:2013-10-01 01:16 PM
I think that you should change:
#define EP_NUM (3) to #define EP_NUM (4) in usb_conf.h2013-10-01 02:18 PM
qubas,
Spot on. Much thanks!Gil