Can one reinitialize a function of USB composite device?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can one reinitialize a function of USB composite device?

632 Views
niepiekm
Contributor I

Hi,

I'm working on a UBS composite device, which consists of USB-CDC and USB-MTP functions. In one of the use cases, I'd like to be able to reinitialize MTP functionality without breaking USB-CDC communication. Using the following sequence works for MTP, but breaks CDC.

```
USB_DeviceStop();
USB_DeviceSetIsr(false);
MtpReinit();
USB_DeviceSetIsr(true);
USB_DeviceRun();

```
 
Regards,
Marek
Tags (2)
0 Kudos
Reply
1 Reply

617 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Marek,

With reinitialization, you mean to restart the process of enumeration and identification? If so, is not possible to reinitialize the USB-MTP without breaking the communication with the USB-CDC. 

Regards,
Victor 

0 Kudos
Reply