Configuring USB as Device using Lauterbach trace32 Script

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

Configuring USB as Device using Lauterbach trace32 Script

2,657 次查看
Sindhu_Gowda
Contributor I

Hi NXP,

I’m working on LS1046A Processor, ours is customized board and I'm new to USB.

In our customized board USB Controller1 is connected to USB Type A, VBUS is not connected to Power supply. I’m trying to configure the USB in Device mode using Lauterbach Trace32 script. I have made configurations according to table “Table 34-9. Power-On or Soft Reset Register Initialization” as mentioned in Reference Manual. For  Setup TRB, Data Buffers and Event Buffers, I’m presently using OCRAM, any specific memory recommended here or can I proceed with OCRAM?

other End of the USB cable is connected to PC(Host), after configuring as per “Table 34-9. Power-On or Soft Reset Register Initialization”, i'm not getting any data either on Receiver FIFO or Event Buffers. Not even the PC is detecting the USB. 

Is configuration “Table 34-9. Power-On or Soft Reset Register Initialization” enough for PC(Host) to detect USB device? Please let me know if I'm on correct path.

0 项奖励
回复
1 回复

2,627 次查看
Pavel
NXP Employee
NXP Employee

FIFOs are located in internal memory of USB 3.0 controller. See the Figure 2-1 in the following document:

https://www.ti.com/lit/ug/spruhj7a/spruhj7a.pdf?ts=1606994412040

 

USB 3.0 xHCI controller memory size is 1Mbyte.

 

Use USB 3.0 driver from Linux BSP as example. See gadget initialization code.

See the following pages:

https://cregit.linuxsources.org/code/4.11/drivers/usb/dwc3/gadget.c.html

0 项奖励
回复