IMX6SX USB device controller mode examples and documentation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

IMX6SX USB device controller mode examples and documentation

跳至解决方案
2,448 次查看
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 项奖励
回复
1 解答
2,423 次查看
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 项奖励
回复
4 回复数
2,426 次查看
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 项奖励
回复
2,424 次查看
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 项奖励
回复
2,416 次查看
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 项奖励
回复
2,437 次查看
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 项奖励
回复