IMX6SX USB device controller mode examples and documentation

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

IMX6SX USB device controller mode examples and documentation

Jump to solution
919 Views
gabohkiin
Contributor I

Hello!

I am new developing with IMX6SX, the SABRE board '6SX-SABRE-SDB'.

I am looking for software code examples/snippets in how to initialize the USB in device mode. A USB device mouse/Keyboard example code would be good and a good start base for my application.

Do you know where can I get these?

The reason of my question is because I am developing an application under a custom OS, and I supposedly initialized all the required registers to be used as a USB Device mode, but the computer failed to enumerate my device. I suspect the initial setup message (the one that computer sends first for requesting the device descriptor) is getting stuck or latched somewhere in the dQH even if priming the ENDP0 IN and OUT. Unsure the reason since I haven't plug a USB sniffer. But yeah, an example functional code would be nice to have.

Thanks in advance.

0 Kudos
1 Solution
894 Views
Aubineau_FAE
NXP Employee
NXP Employee

Hi,

 

OK, it seems not part of the BSP.

Plan B can be to port the platform SDK (supporting only i.MX6Solo/Dualite & i.MX6Quad/Dual) on the SoloX:

https://github.com/flit/imx6_platform_sdk 

SoloX has one USB port less but it is based on the same IP.

The platform SDK is running on Cortex-A9 but it is bare metal code.

/BR

Vincent

 

View solution in original post

0 Kudos
4 Replies
897 Views
gabohkiin
Contributor I

Thanks Vincent.

I was unable to find the download button for getting the USB examples, is that because MQX is a licensed software?

Regards,

0 Kudos
895 Views
Aubineau_FAE
NXP Employee
NXP Employee

Hi,

 

OK, it seems not part of the BSP.

Plan B can be to port the platform SDK (supporting only i.MX6Solo/Dualite & i.MX6Quad/Dual) on the SoloX:

https://github.com/flit/imx6_platform_sdk 

SoloX has one USB port less but it is based on the same IP.

The platform SDK is running on Cortex-A9 but it is bare metal code.

/BR

Vincent

 

0 Kudos
887 Views
gabohkiin
Contributor I

Thanks Vincent, I appreciate your answer. I will take a look of that code. 

If I have another question or issue I will post another question.

Regards

0 Kudos
908 Views
Aubineau_FAE
NXP Employee
NXP Employee

Hi,

You should have USB examples in MQX v5 Software Solutions for i.MX6SX:

https://www.nxp.com/design/software/embedded-software/mqx-software-solutions/mqx-v5-software-solutio... 

/BR

Vincent

0 Kudos