cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
3,597 Views
Registered: ‎07-13-2017

VCU108 Board Test on Ubuntu

Jump to solution

I"m running on Ubuntu 16.04.  I set the board up according to XTP368-VCU108-setup-c-2016-4.pdf

I'm stuck on the UART Driver section.  It might be that I don't need to install any drivers.

 

lsusb:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse
Bus 001 Device 021: ID 0403:6014 Future Technology Devices International, Ltd FT232H Single HS USB-UART/FIFO IC
Bus 001 Device 020: ID 10c4:ea70 Cygnal Integrated Products, Inc. CP210x UART Bridge
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmesg:

[56939.806304] usb 1-7: new high-speed USB device number 19 using xhci_hcd
[56939.951342] usb 1-7: New USB device found, idVendor=0403, idProduct=6014
[56939.951347] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[56939.951350] usb 1-7: Product: Digilent USB Device
[56939.951352] usb 1-7: Manufacturer: Digilent
[56939.951354] usb 1-7: SerialNumber: 210308A124B4
[56939.954051] ftdi_sio 1-7:1.0: FTDI USB Serial Device converter detected
[56939.954130] usb 1-7: Detected FT232H
[56939.954510] usb 1-7: FTDI USB Serial Device converter now attached to ttyUSB2
[60490.720360] usb 1-7: USB disconnect, device number 19
[60490.720708] ftdi_sio ttyUSB2: FTDI USB Serial Device converter now disconnected from ttyUSB2
[60490.720742] ftdi_sio 1-7:1.0: device disconnected
[60596.708882] usb 1-5: USB disconnect, device number 18
[60596.709245] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[60596.709279] cp210x 1-5:1.0: device disconnected
[60596.709552] cp210x ttyUSB1: cp210x converter now disconnected from ttyUSB1
[60596.709582] cp210x 1-5:1.1: device disconnected
[60641.435943] usb 1-6: new full-speed USB device number 20 using xhci_hcd
[60641.577656] usb 1-6: New USB device found, idVendor=10c4, idProduct=ea70
[60641.577660] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[60641.577663] usb 1-6: Product: CP2105 Dual USB to UART Bridge Controller
[60641.577665] usb 1-6: Manufacturer: Silicon Labs
[60641.577667] usb 1-6: SerialNumber: 000EAF67
[60641.578608] cp210x 1-6:1.0: cp210x converter detected
[60641.579406] usb 1-6: cp210x converter now attached to ttyUSB0
[60641.579807] cp210x 1-6:1.1: cp210x converter detected
[60641.580303] usb 1-6: cp210x converter now attached to ttyUSB1
[60641.596642] cp210x ttyUSB1: failed set req 0x1e size 4 status: -32
[60641.596649] cp210x ttyUSB1: failed to set baud rate to 300
[60916.376646] r8169 0000:04:00.0 eth0: link down
[61262.481202] usb 1-7: new high-speed USB device number 21 using xhci_hcd
[61262.626234] usb 1-7: New USB device found, idVendor=0403, idProduct=6014
[61262.626239] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[61262.626242] usb 1-7: Product: Digilent USB Device
[61262.626244] usb 1-7: Manufacturer: Digilent
[61262.626246] usb 1-7: SerialNumber: 210308A124B4
[61262.628935] ftdi_sio 1-7:1.0: FTDI USB Serial Device converter detected
[61262.629008] usb 1-7: Detected FT232H
[61262.629254] usb 1-7: FTDI USB Serial Device converter now attached to ttyUSB2

However when I use minicom on /dev/ttyUSB0 or /dev/ttyUSB1, I get nothing.  So Question 1) should I see anything if connected to the UART, with only the initial an out of the box configuration?  I rebooted the board thinking I was at an idle state where the board was not outputting anything.  Figured with the reboot I might see something.

 

Accordingt o the Terminal setup slide in the pdf there does appear to be some output on the UART.

 

Next the Built In test xtp361-vcu108-bit-c-2016-4.pdf and the associated download are for windows only.  I was under the impression that this evaluation board, Vivado and tools functioned under Ubuntu.  Will I have to leverage a different (Windows, not Ubuntu) computer for the BIT or am I just not seeing the Ubuntu BIT somewhere?

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Observer
Observer
6,031 Views
Registered: ‎07-13-2017

Tonight was a successful night.  I spent a week on vacation to learn FPGA, and struggled along the way.  I just figured out another problem and closed it out and now this one.

 

The problem was two fold.

First was simple and I should have know this from the start, my user had to be in the dialup group.  That allowed me to connect to the port.

 

second, was a little bit trickier.  Every place I was asked I always used 115200 for my com port speed.  As a result of repeatedly building the the softcore microblaze over and over and over to solve the other problem, I remembered seeing the port speed set yo 9600 and I was not able to change it.

 

So after adding myself to the group (I believe I had a reboot in there, don;t recall if that is needed or not) and made the SDK Terminal connection speed set at 9600, I was able to get my bare metal application to work.  

 

So I now have a base to work from.

View solution in original post

0 Kudos
5 Replies
Highlighted
Scholar
Scholar
3,585 Views
Registered: ‎02-27-2008

Yes,

 

The board as shipped will talk to the USB UART port.  You need the drivers to support it in Windows or Linux.

 

You should see the UART USB device when you examine the USB port once it is plugged in.  It powers up with a few messages, and provides a simple menu for looking at the internal voltages and temperature and configuring the local clock sources.

 

The other USB port has the JTAG interface which the Vivado tools use.  Note that Vivado may also use the USB UART when debugging in SDK.  The Ubuntu build for most PC's has the drivers as defaults.

 

 

Austin Lesea
Principal Engineer
Xilinx San Jose
Highlighted
Observer
Observer
3,554 Views
Registered: ‎07-13-2017

The /dev/ttyUSB0 and /dev/ttyUSB1 are both connecting and show up in the /dev folder.  As you can see in the dmesg out above both are seen by the system.  One is the JTAG and the other the UART.  I can program the board so the JTAG is working.  I cannot seem to connect the UART at all.

0 Kudos
Highlighted
Observer
Observer
3,550 Views
Registered: ‎07-13-2017

UPDATE:  I changed the cable and removed the JTAG cable so that I would know that the device would be /dev/ttyUSB0.  I set up minicom to use ttyUSB0 and I get output from the board.  I see a lot of text scroll by then a menu appear:

 

VCU108 System Controller v1.0
      - Main Menu -
-----------------------------
1. Set Programmable Clocks
2. Get Power System (PMBUS) Voltages
3. Get UltraScale FPGA System Monitor (SYSMON) Data
4. Adjust FPGA Mezzanine Card (FMC) Settings
5. Get GPIO Data
6. Get EEPROM Data
7. Configure UltraScale FPGA
Select an option

Then the device immediately goes offline.  I cannot enter anything.

0 Kudos
Highlighted
Observer
Observer
3,518 Views
Registered: ‎07-13-2017

I switched the uart to connect to a windows computer and the interface works great. So there is something wrong with the way I have Ubuntu configured.

0 Kudos
Highlighted
Observer
Observer
6,032 Views
Registered: ‎07-13-2017

Tonight was a successful night.  I spent a week on vacation to learn FPGA, and struggled along the way.  I just figured out another problem and closed it out and now this one.

 

The problem was two fold.

First was simple and I should have know this from the start, my user had to be in the dialup group.  That allowed me to connect to the port.

 

second, was a little bit trickier.  Every place I was asked I always used 115200 for my com port speed.  As a result of repeatedly building the the softcore microblaze over and over and over to solve the other problem, I remembered seeing the port speed set yo 9600 and I was not able to change it.

 

So after adding myself to the group (I believe I had a reboot in there, don;t recall if that is needed or not) and made the SDK Terminal connection speed set at 9600, I was able to get my bare metal application to work.  

 

So I now have a base to work from.

View solution in original post

0 Kudos