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 Verify UART is/isn't working on project
  • 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 328 subscribers
  • Views 385 views
  • Users 0 members are here
Related

Verify UART is/isn't working on project

Former Member
Former Member over 11 years ago

Thank you in advance for any help anyone has to offer. I'm new to software/virtual hardware and coding. I'm currently working on a project of adding UART functionality to an FPGA image. I have created, instantiated in top file, and added ports necessary for our utility to build the FPGA image and now I'm not sure how to verify the UARTS are/aren't working or not. The image builds fine (no errors) now after some debugging. The UART I'm using is a 16550 on a Zync 7030 I believe. How do I verify these are working correctly? Again I'm new to all this and yes still learning all the commands/tools to interface with the board this is on. Thanks again for any help.

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

    Are you using PlanAhead/ISE or Vivado Xilinx tools? Is this a custom board or an off the shelf board?

     

    Are you using one of the Zynq PS (Processing System) UARTs or is the UART you have implemented one of the AXI UARTs from the standard library or did you implement you own UART? If so, what is the internal interface.

     

    Is the external UART interface RS232 or just logic levels and what is the physical connection (connector?).

     

    Are you using an Operating System or is this a 'bare metal' application?

     

    -Gary

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    -Vivado Xilinx tools; custom board

    -I'm using an AXI Uart from the standard library. I used xilinx to build the instantiation module and coregen to create the .ngc file.

    -I believe it is rs232 and AXI

    -OS. This is being done in linux

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Once you have built your hardware design, including constraints to direct which physical pins the UART signals are connected to, you should be able to export your design to SDK. Once there you can start with a simple hello world example if you have connected UART 1 of the Zynq PS as a console connection similar to the way it is done in the MicroZed tutorials 01 and 02 located here:

     

    http://www.zedboard.com/design/1519/10

     

    Once you get that working you can use the auto generated test application, as is shown in the MicroZed tutorial 03, to test your AXI uart. You can also take a look at the AXI UART example code by opening up the .mss file in the SDK and, next to the AXI UART, click on the 'examples' link. You will need to connect a terminal program such as Tera Term or Putty to the rx and tx from your UART via a serial port or USB to Serial adapter.

     

    -Gary

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    I think I understand what you are saying. However, we build the design into an mcs file that we then use the SDK to program the fpga on the board with the new mcs file. I'm assuming that once this is done, I could attempt what you are suggesting, am I following? see if serial communication works between my terminal window and the board?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Most users use the SDK to generate the .mcs file and program it into the QSPI Flash. It is usually easier to initialize the Zynq PS and load the bitstream via JTAG, using the SDK, initially to verify and debug both the hardware and software.

     

    To build the .mcs file in the first place you will need to use the SDK to generate an FSBL (First Stage Boot Loader) and, along with the ps7_init.h and ps7_init.c (exported to the SDK from Vivado), the FPGA bitstream and your software application.

     

    It would probably be helpful to go through the MicroZed tutorials I referenced earlier, or the Zynq Concepts, Tools and Techniques tutorial for the Zedboard or for the Xilinx ZC702 evaluation board to understand the development and debug flow. Avnet has a hands on full day class for developing Zynq software and another for developing Zynq hardware if you are able to attend one in person. Otherwise we will be posting the material on the zedboard.org site in the near future.

     

    -Gary

    • 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