element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Avnet Boards General Fixing the UART (serial) port of the ZedBoard on kubuntu - Hello world example
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 6 replies
  • Subscribers 355 subscribers
  • Views 2677 views
  • Users 0 members are here
Related

Fixing the UART (serial) port of the ZedBoard on kubuntu - Hello world example

meatboy
meatboy over 9 years ago

Dear all,

I've reached the point where all the links that google provides to me are purple and I definitely need some help.

 

I am running the Xilinx SDK to program my zedboard on Kubuntu 16.04. I can complete the blinking led tutorial flawlessly but the hello_world one is pretty tough.

 

I've implemented a minimalist design in vivado with a zynq 7 PS with its uart1 interface enabled (default setting). I've then exported the bitstream to the SDK and created the hello_world example project. When it comes to program the FPGA, or the PS, everything seems to work fine but nothing appears in the terminal.


I've tried to use the integrated SDK terminal, minicom and gtkTerm, all configured to listen to ttyACM0 at baud rate 115200. ttyACM0 is the port which appears only when I plug on the UART port of my zedboard to my computer so I know that the UART port is recognized.

 

Do you have any idea about where the problem comes from ?

 

I also specify that I have usb 3.0 ports available and I can't use windows or mac os.

 

Feel free to ask me to elaborate,

Thanks !

Gabriel B.

  • Sign in to reply
  • Cancel
  • zedhed
    0 zedhed over 9 years ago

    Hi Gabriel,

    I ran into some frustrations getting USB-UART to work under CentOS 7 but was able to piece together some workarounds related to permissions and udev rules.  Some of this information may be useful to you and I posted my workarounds on this thread here:

    http://microzed.org/content/how-connect-zedboard-centos-7

    I know those exact workarounds probably only work for CentOS 7, but they may steer you down the right path.

    Also, Sven Andersson has a page on his blog where he connects to ZedBoard using his Ubuntu virtual machine.

    http://svenand.blogdrive.com/archive/172.html#.VNTZqmjF-Sp

    Since Kubuntu is probably more similar to Ubuntu, perhaps that would also be useful to you.

    Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • meatboy
    0 meatboy over 9 years ago in reply to zedhed

    Hi Kevin,

    Thank you for your answer.

     

    I've tried your udev tricks but it did not work for me...

    I also took a look at Sven's tutorial and found nothing about the UART configuration except the dialog group thing (which I've already done). Actually, the JTAG port was tricky to set up but it's ok for me now and I don't really want to mess up my set up reinstalling it as I don't think it will change anything to the UART port behavior. But I wonder if using the Mac layer before the VB virtualization can help to get it working.

     

    As an additional test, I took my 5kg gaming laptop to give the UART port a try on windows and it worked. But I am not really happy with it as I can't stand working on windows and I don't really want a 5kg terminal when I work on my zedboard. I just now know that the board works properly.

     

    To sum up, I can connect to the UART port as a ttyACM0 node is created as soon as I plug the board.

    I can use various terminals to watch at the ttyACM0 port (with or without sudo).

    Then, nothing reach the terminal, which stays desperately empty.

    The UART works on windows with my board.

     

    I actually found nobody who managed to use the UART port on a native Ubuntu, which worries me a little bit.

     

    So here come a few questions:

    - Do you think that reinstalling the JTAG driver in the same way than Sven would change anything for the UART ?

    - I've done this to check if I can do something "serial communications related" on my system and I can. But I understand that it proves nothing when it commes to UART-USB stuff.

    - I've also read this article which seems to say that a UART-USB connection is supposed to lead to a ttyUSB node whereas I only have a ttyACM node. Do you have any idea if it can be a clue ?

     

    Regards,

    Gabriel

     

    PS: If you wonder why is my English approximate, then I confess, I'm French ;P
    And I am also far from being a Linux expert (I am not a neophyte either) so I apologize if I say stupid things sometimes...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • zedhed
    0 zedhed over 9 years ago

    Hi Gabriel,

    I realize that getting the terminal to work under Kubutu would be ideal for you but it could come at the cost of lots of investment of your time.  I would venture to guess that your time is worth something valuable, so at some point an alternative solution to the current path will be more appealing.

    It sounds like you are running Kubuntu on a Virtual Machine under OSX, is that correct?  If so, can you use the terminal from OSX for USB-UART?  I usually do that for my virtual machines since there is usually plenty of headache in the translation layer for USB between the host OS and the Guest OS for it to rarely (if ever) work.  In my previous post, I was able to get the USB-UART to work fine on a native CentOS install (not virtualized at all).  Also, I have used ZedBoard USB-UART just fine under Ubuntu 10.04 LTS when we wrote Appendix III of the ZedBoard Getting Started Guide:

    http://microzed.org/sites/default/files/documentations/GS-AES-Z7EV-7Z020-G-V7.pdf

    If you are running Linux on ZedBoard, another option may be to connect to your ZedBoard remotely over SSH terminal using the built-in Ethernet.  This has the added benefit of the connection being completely secured if you are worried about people snooping on your work over the network.

    Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • meatboy
    0 meatboy over 9 years ago in reply to zedhed

    Hi Kevin,

     

    I am running a native Kubuntu unlike Sven in his famous tutorial who run Ubuntu in VB on OSX flawlessly.

     

    I've tried to connect to Kubuntu on my other computer and with both USB3 and 2 this time with the very same result: Nothing. As it almost exactly the same OS, it just proves that my main Kubuntu behaves normally.
     

    If you tell me that you used it on an older version of Ubuntu, then I'll start thinking that there is a driver incompatibility with the newest kernel. The latest version of the cp210x driver is supposed to be compatible with the 3.x.x kernels. They are kind of late ;P. I'll try the oldest liveUSB I can find to find if an older version of Ubuntu gives better results for me.

     

    Even if I don't really care about security for now, running Linux on the ZedBoard might be most convenient option once it is set up. This time I know that my Ethernet port and my ssh tool work fine !

     

    Thank you very much for your help. I don't think that anyone except the driver makers themselves can do anything for the UART now.

     

    I'll give a feedback once I'll have more information.

     

    Regards,

    Gabriel

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • meatboy
    0 meatboy over 9 years ago

    Hi again,

     

    Well, It seems that it is a driver issue.

     

    I can read the port with a live Ubuntu12.04 installation out of the box simply with "sudo cat /dev/ttyACM0" and this release has a 3.x.x kernel. I've contacted Silicon Lab to try know if they are aware of something with the cp210x driver and the 4.x.x kernels.

     

    In a nutshell : to communicate with a zedboard through UART, use windows ( =/ ), OSX ( $$$ ) or an old linux (<3  3.x.x kernel). 

     

    Thanks again for your help,

    Gabriel

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • zedhed
    0 zedhed over 9 years ago

    Hi Gabriel,

    Thank you for updating us on your findings.  I am glad that you were able to get it working, despite the older version of Ubuntu, at least it gives you a reference point to see what has changed making it easier to isolate the cause of USB-UART to no longer function under the newer kernel.

    The USB-UART on ZedBoard is implemented using a Cypress CY7C64225 device rather than a Silicon Labs device like we use on MicroZed/PicoZed so you likely won't get very far asking the Silicon Labs folks about the driver issue.

    If you do find out something about an updated USB-UART driver, please share your results the community.

    Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube