element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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 Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
ZedBoard Hardware Design ZEDBOARD UART-USB connection problem in linux while using matlab
  • 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 Not Answered
  • Replies 6 replies
  • Subscribers 323 subscribers
  • Views 1059 views
  • Users 0 members are here
  • zedboard
  • serialport
  • matlab
  • uart
  • hdlcoder
Related

ZEDBOARD UART-USB connection problem in linux while using matlab

Rohith_Gopakumar
Rohith_Gopakumar over 1 year ago

hello i am new to zedboard and am trying to set up the hardware since the past few weeks so any help would be great. i am trying to connect the board to the development computer

TOOL VERSIONS:

matlab version-R2022b

os-Ubuntu 20.04.3 LTS

i have used HDL Coder Support Package for Xilinx Zynq Platform

 

I keep getting this error and i'm not sure how to resolve it, any and all help would be appreciated thank you

----------------------------------------------------------------------------------------------------------------------------------------------

attempts done:

1)i have tried to setup serial port using s=serialport('dev/ttyACM0',115200);  fopen(s) then tried the hardware

2)i have given permissions for dev/ttyACM0 by chmod 666

3)i have used putty to communicate with the zynq board

image

  • Sign in to reply
  • Cancel
Parents
  • flyingbean
    0 flyingbean over 1 year ago

    Not many peoples here using Matlab to run FPGA and communicate UART via Matlab/FPGA.  In the meanwhile you used Linux for Matlab toolchain, which making the pool of the similar designers as you even less. You might need to ask help at Mathwork. Here is a snapshot from Mathwork about a similar question as yours.

    image

    Looks like the buffer size of UART could be a stopper after the communication starting.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Rohith_Gopakumar
    0 Rohith_Gopakumar over 1 year ago in reply to flyingbean

    I am able to connect using putty to the zedboard, so the communication is possible. One of the explainations i found was that matlab only recognises ttyS*, which is a very small portion of the ones present in linux and from what i figured out mine used DEV/ttyACM0. 

    i tried creating a link to ttyS101 and then trying to set-up but it didn't work.

    I have contacted the mathworks support but any help from here would be appreciated.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dyessgg
    0 dyessgg over 1 year ago in reply to Rohith_Gopakumar

    I'm not an expert so I don't know the exact way to do this, but maybe try creating a udev rule to name the serial port as you wish.

    There might be a Device Tree entry that will tell the serial driver on the ZEDBoard to generate a /dev/ttyS name. 

    If all else fails, modify the particular serial driver to create a name you want.

    Unless I am completely misunderstanding the issue.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Rohith_Gopakumar
    0 Rohith_Gopakumar over 1 year ago in reply to dyessgg

    I had use sudo ln -s /dev/ttyACM0 /dev/ttyS101 to create a symbolic link 

    i used this as reference so please do correct me if my understanding was wrong in any way.

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Rohith_Gopakumar
    0 Rohith_Gopakumar over 1 year ago in reply to dyessgg

    I had use sudo ln -s /dev/ttyACM0 /dev/ttyS101 to create a symbolic link 

    i used this as reference so please do correct me if my understanding was wrong in any way.

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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 © 2025 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