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 problem of PS UART self-test application
  • 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 9 replies
  • Subscribers 330 subscribers
  • Views 1160 views
  • Users 0 members are here
Related

problem of PS UART self-test application

Former Member
Former Member over 12 years ago

Hi...
I have faced a strange problem.
I use the code that Xilinx offers, named xuartps_selftest_example.c, and don't modify it except some instance name. When I run it, it shows unrecognizable code and shows Failed. But when I debug it, it shows success.
What's the problem?

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

    i also have the same problem.

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

    Hi tec998s,

    Which version of tools are you using?  Can you describe the failure any further?  When you say that the application "shows unrecognizable code and shows Failed" are you referring to garbled output on the console?

    When you run the application, are you creating a new run configuration for the application?

    If the UART1 PS device is not being initialized properly to generate character outputs at the correct baud rate, this condition could cause garbled characters on the console.

    The ps7_init.tcl file exported into SDK by PlanAhead is used by XMD in the background to initialize the Zynq PS hardware before executing an application.  I know that by default, when creating a debug configuration, the path to the ps7_init.tcl gets populated in the "Device Initialization" tab of the
    Debug Configurations manager.  Can you check to see if that same ps7_init.tcl file is being specified for your application's Run Configuration as well?

    Also, I would recommend against using the serial console built into SDK for now.  I recommend using the latest version of Tera Term which is available for free from the SourceForge Japan site:

    http://ttssh2.sourceforge.jp/index.html.en

    Regards,

    -Kevin

    • 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 zedhed

    I have a similar UART problem.  I routed the PS uart0 to the EMIO and then to two PMOD pins, JA1 and JA2,   The stdin and stdout for the BSP are set to ps7_uart_1 and the through the Cypress usb to serial chip as per the standard config.  The default baud rate  for stdout /stdin is specified as 115200. But after adding UART0, It seems to step down to half the baud rate of 57600. (using Terra term)    Then the loopback test for the UART0 fails for both the polled mode and interrupt mode. Running the debugger shows the return test string misaligned as if the loopback mode is broken.
    I'm using  Plan Ahead/EDK/SDK 14.3

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

    I am getting the same problem, could you please tell me, how you resolved the problem.

    Many Thanks

    • 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 fayyazrafiq

    I have the same problem.  I routed UART0 from the PS to the PL through the EMIO.  The self test is failing.  Did anyone figure out a fix?

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

    I am facing the same problem, i routed the UART0 to EMIO and then to package pins but no data output. I am using XPS/SDK 14.5. I wrote somewhere that it is bug in the ZEDBOARD (http://www.zedboard.org/content/zedboard-revision-d-bug-issues-emio-related). I found so many posts for this problem but there is no single solution exist either from Xilinx or ZEDBOARD side. I thought either the ZEDBOARD manufacturer or the XILINX are concealing something which is very severe and wasting time for the developer in this field.

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

    As many people said above, I have same problem with run UART0 selftest or UartPSExample program.
    I got a message "UartPSExample FAILED".
    (I am using SDK 2013.4 and Zedboard rev D.)

    Is there any solution for this?

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

    I hope that this is of some help. I am using Vivado 2014.2 with the ZC702 board (not the ZedBoard), but I think that my solution may work for ZedBoard as well. I saw the comment by Kevin above about the ps7_init.tcl file and it led me to check which ps7_init.tcl was used in my debug and in my run configurations. It turns out that Vivado/SDK2014.2 automatically populated the configurations with the wrong file, from an old design. I switched to the ps7_init.tcl file in the <design>/<design>.sdk/<design>_hw_platform_0/ps7_init.tcl and the UART test suddenly started passing.

    Paul

    • 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