Skip to main content
gilbert
Associate
September 30, 2013
Question

STM32f103 USB EP3 Interrupt Problem

  • September 30, 2013
  • 2 replies
  • 1518 views
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:

    This topic has been closed for replies.

    2 replies

    jzawadzk
    Associate
    October 1, 2013
    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
    gilbertAuthor
    Associate
    October 1, 2013
    Posted on October 01, 2013 at 23:18

    qubas,

    Spot on. Much thanks!

    Gil