AnsweredAssumed Answered

Disable a device MSC in USB Composite CDC + MSC

Question asked by DangAnhTung on May 26, 2014
Latest reply on Apr 18, 2018 by Hau Lam
Hi everyone!
I developed the USB Composite CDC+MSC. It worked right.
Now, I want to disable a MSC and use CDC only. Do we have any way to do that (without re-connect the USB)?
I tried to ignore the MSC packets IN/OUT by return the NAK signal. However, the CDC can transfer several strings then stop.
void EP2_OUT_Callback(void)
    if (MSC_Enable)
        SetEPTxStatus(ENDP2, EP_RX_NAK);

Thank you so much.