MIMXRT1160-EVK: How to move usbx_device_mass_storage demo from usb1 to usb2

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

MIMXRT1160-EVK: How to move usbx_device_mass_storage demo from usb1 to usb2

Jump to solution
570 Views
Mc2023
Contributor IV

I would like to use usb2 for usbx_device_mass_storage demo example.

I have modified slightly the demo with the following:

#define CONTROLLER_ID kUSB_ControllerEhci1

irqNumber = usbDeviceEhciIrq[1];

void USB_OTG2_IRQHandler(void)
{
USB_DeviceEhciIsrFunction(deviceHandle);
}

But it is not working.

Could you advised me the correct modifications to be done?

Best regards,

 

 

Tags (4)
0 Kudos
1 Solution
513 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @Mc2023 

Looking into the example you can find the next function:

Miguel04_0-1683227800255.png

Did you also change the configuration to enable de USB1 clocks?

Miguel04_2-1683228420602.png

 

Best Regards, Miguel.

 

View solution in original post

0 Kudos
4 Replies
514 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @Mc2023 

Looking into the example you can find the next function:

Miguel04_0-1683227800255.png

Did you also change the configuration to enable de USB1 clocks?

Miguel04_2-1683228420602.png

 

Best Regards, Miguel.

 

0 Kudos
495 Views
Mc2023
Contributor IV

Hi @Miguel04,

Thanks a lot for your feedback!

In the meantime, I have found the solution. Your proposed solution is correct!

Best regards,

Mustafa

567 Views
CarlosGarabito
NXP TechSupport
NXP TechSupport

We recommend to you to read this note application to understand better the spi communication https://www.nxp.com/docs/en/application-note/AN991.pdf

0 Kudos
564 Views
Mc2023
Contributor IV

The recommendation does not make sense.

In this case there is no link between SPI and USB

0 Kudos