Using the USB port

Available to be read by all.
Sebastian_Monka
Posts: 10
Joined: Tue Nov 15, 2016 12:28 pm

Using the USB port

Postby Sebastian_Monka » Tue Feb 14, 2017 1:33 pm

Hey,
did anyone use the USB Port successfully?
I want to use it for an wifi dongle or an input-port.

"lsusb" in Petalinux doesn't show any output.

http://www.wiki.xilinx.com/Zynq+Linux+USB+Device+Driver
Do I have to change the "Device-tree" or/and is it necessary to enable something in vivado?

Thanks for the help.
Sebastian

User avatar
Timoteo
Posts: 130
Joined: Thu Jun 09, 2016 11:47 am

Re: Using the USB port

Postby Timoteo » Wed Feb 15, 2017 9:23 am

Hi,

The USB port doesn't work directly, you have to configure the chip next to it (U10, TPS2051D).
So far, I just tested this port. To do it, I used the example code from Xilinx in SDK. (Create in Vivado a design with a Zynq block, enable USB, and UART to debug through micro usb, export hardware, and launch SDK. Create a .bsp, and from there, check the Xilinx libraries and code examples. Select USB, and import project.)
The default code was enough for Windows to recognise the USB in the Device Manager. For your purposes, I guess you will have to write your own code based on Xilinx's example.

Regards,
Timoteo

Sebastian_Monka
Posts: 10
Joined: Tue Nov 15, 2016 12:28 pm

Re: Using the USB port

Postby Sebastian_Monka » Wed Feb 15, 2017 10:54 am

Thanks for your help,
but how to enable the U10?
Is it enabled by Vivado or SDK?
Or do you mean the JP5?

User avatar
Timoteo
Posts: 130
Joined: Thu Jun 09, 2016 11:47 am

Re: Using the USB port

Postby Timoteo » Wed Feb 15, 2017 3:19 pm

Hi,

You must use the dedicated MIO pins in the Zynq to configure the chip. This must be done in the ARM processor. You need to create a design in Vivado where you instantiate a Zynq processor block, and select the MIO pins corresponding to the USB port. To program the Zynq in C, just export the hardware design, and launch SDK.

You can work standalone first to test it. Create a new board support package (bsp) based on the exported hardware. Then create a project (or import from Xilinx examples) based on that board support package. Compile and run the project example for USB.

Page 12 of "EMC2-DP_Design_Specification_(QCF51)_v3-4.pdf". Check the MIO pins on the Zynq.
Here an example of where to assign pins in the Zynq block
usb1.JPG
usb1.JPG (154.73 KiB) Viewed 8908 times

Here an example of where to add the usb example project in SDK. Create the .bsp, and find the examples in system.mss.
usb2.JPG
usb2.JPG (225.43 KiB) Viewed 8908 times


Regards,
Timoteo
Last edited by Timoteo on Thu Feb 16, 2017 10:17 am, edited 1 time in total.

Sebastian_Monka
Posts: 10
Joined: Tue Nov 15, 2016 12:28 pm

Re: Using the USB port

Postby Sebastian_Monka » Thu Feb 16, 2017 9:44 am

Thank you Timoteo,
it was a problem with Petalinux and the USB port.
I managed it by changing the device-tree.

Regards,
Sebastian


Return to “FAQ about Tulipp Development Platform”

Who is online

Users browsing this forum: No registered users and 5 guests