AnsweredAssumed Answered

Issues with composite VCP+MSC: VCP not working

Question asked by Lyen.Rum on May 1, 2016
Latest reply on May 1, 2016 by Lyen.Rum
Hello,

I am stuck in implementing USB composite (VCP+MSC) using FS-Device_Lib_V4.0.0 (STM32L151). Individually both works but when I try composite VCP+MSC, MSC works well but PC can't communicate via VCP (although it can recognize as COM port).

I've edited .inf file and updated device descriptions. What else I am missing to config?
I request your suggestion how to fix this issue.
Thank you in advance.

NB: I'm using ENDP1 in+out for MSC, ENDP3 in+out for VCP, ENDP2 in for VCP interrupt. End point address combined as:

#define BTABLE_ADDRESS        (0x00)
#define ENDP0_RXADDR        (0x0040)
#define ENDP0_TXADDR        (0x0080)
/* EP1 MSC  */
#define ENDP1_TXADDR        (0x0150)
#define ENDP1_RXADDR        (0x0190)
/* EP2 VCP Int*/
#define ENDP2_TXADDR        (0x0100)
/* EP3  VCP*/
#define ENDP3_TXADDR        (0x00C0)
#define ENDP3_RXADDR        (0x0110)

Outcomes