cancel
Showing results for 
Search instead for 
Did you mean: 

STM32f103 USB EP3 Interrupt Problem

gilbert
Associate II
Posted on October 01, 2013 at 01:50

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=interrupt

EP0, 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:

2 REPLIES 2
jzawadzk
Associate II
Posted on October 01, 2013 at 22:16

I think that you should change:

#define EP_NUM                          (3)

to

#define EP_NUM                          (4)

in

usb_conf.h
gilbert
Associate II
Posted on October 01, 2013 at 23:18

qubas,

Spot on. Much thanks!

Gil