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.
Solved! Go to Solution.
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
Thanks Vincent.
I was unable to find the download button for getting the USB examples, is that because MQX is a licensed software?
Regards,
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
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
Hi,
You should have USB examples in MQX v5 Software Solutions for i.MX6SX:
/BR
Vincent