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
Software Application Development use  /dev/ttyACM0 in linux asUART_COM in win
  • 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 5 replies
  • Subscribers 329 subscribers
  • Views 813 views
  • Users 0 members are here
Related

use  /dev/ttyACM0 in linux asUART_COM in win

Former Member
Former Member over 12 years ago

I am a univerity student from China.
use the zynq board to do my graduate design

I find some references in this net
I am studying Training&Videos--->  Introduction to Zynq
Lab experiment 2 now,,the hello_world_0.elf experiment.

now I have one problem.
in Lab02 -Hello_World_14_2_2.pdf. Page 28 .
After configuring in XPS-->export hardware to sdk-->run as-->run configuration.

#######
17. Switch to the STDIO Connection tab.
18. Check the box for Connect STDIO to Console.
19. Select the PORT for the Cypress USB-UART.
20. Set the BAUD Rate to 115200.
#######

my host os is gentoo linux..with ISE 14.4 installed.

in "Run configuration"-->"Xilinx C/C++ elf"-->STDIO connection
,there's no right port to choose ,as there's COM_n in windows_os.The only default choice is JTAG_UART, BAUD_RATE is locked at 9600.

I have compile the linux kernel,,the cypress make a nod in /dev as /dev/ttyACM0,and it's useful before,that equals com_N in win os.But there's no choice.

how to solve the problem?
Will I have to install a windows os to make it work?
Thank you.

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 12 years ago

    Hello double crane.

    Try to install minicom, configure it and start it by typing:

    sudo minicom -D /dev/ttyACM0 -b 115200 -8 -o. This way you should see the output in a terminal shell instead of xilinx sdk console. Hope it helps.

    sticken

    P.s: I don't know if "sudo" is strictly required, but I'm not able to see anything without using it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jamestkennedy
    0 jamestkennedy over 12 years ago

    you do have a cable besides the jtag attached to the board? to the miniport labeled UART? the board only comes with the one for JTAG and the other for a usb hub to connect peripherals to a running linux. but you can use it on UART with a standard usb cable attached to you host. that's what i did before i got another mini usb cable!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Former Member
    hello,firstly, thank you for your reply.  I did use minicom before and I have set right configurations for zynq. I used minicom when booting the default linux system in SD card.It works as expected.  I could see the output in minicom maybe.But,how can I send the generated elf file to zynq board through UART and make it run? I have tried to echo XX.elf to /dev/ttyACM0,but nothing shows back in minicom.So,it's not the right way using echo.then how?  I've install a XP and xilinx,and do the expeciment second time,yesterday,it works.haha.it's enough now. but I still prefer linux.Hope less problems.  Thank you for advicement. Happy new year,新年快乐!
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to jamestkennedy

    Thank you for you reply. I do.I have used two mini-USB cables.one for UART and one for program.(The third one is usb-OTG,left) one cable is from zynq,and the other is from my mobile-phone. & I see results as expected in XP yesterday. maybe the xilinx didn't know to find ttyACM,unlike com_n. thank you for your attention. 新年快乐 万事如意!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago
    an hour ago, finnally I solved it.now I can delete windows system.  solved problem--how to do sdk-project-run_configuration-debug-run in linux system  I just mark it in chinese. If anyone love linux meet the same problem, wish this could help  because I'am so lazy,with poor English,So,I don't translate it.  If you can't understand this,try touse google translate or email double_crane@qq.com (or org.doublecrane@gmail.com), you're welcome and please use simple English  本文由EEDC(double_crane)原创 于2013-4-21-早5点摸索成功  1.首先保证两部分的驱动已经安装 (1).cypress-UART driver-->在linux内核编译USB-->CDC-ACM 连接上电脑时,出现/dev/ttyACM0,可用minicom  (2).diligent-program driver-->diligent官网下载digilent.adept.runtime_2.10.2-i686.tar.gz和libCseDigilent_2.4.3-i686.tar.gz,按照指示安装  2.打开xsdk工程,右键run_as-->run_configurations  3.在打开的页面,选择下方的工程名+debug,STDIO_Connection,勾Connect STDIO to Console,Port只有JTAG_UART,波特率锁定在9600,apply,run.  4.出现第5步所说的提示框,但是此时先别点,先保证minicom已经打开.观察/ttyACM0.  5.出现提示框,"FPGA configuration is not done on the target.Do you still want to continue launching application?"选择 OK  6.xilinx sdk console下出现"Error opening JTAG UART @ localhost:-1".但是在minicom里可以看到程序运行回显的内容  完毕  注:程序是通过Promgram口下载进去,需要diligent驱动 输出是在UART显示
    • 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 © 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