Configuring USB as Device using Lauterbach trace32 Script

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

Configuring USB as Device using Lauterbach trace32 Script

2,666 Views
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 Kudos
Reply
1 Reply

2,636 Views
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 Kudos
Reply