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 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
      •  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 IF I switch the serial port from UART1 to UART0, What need I do ?
  • 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 331 subscribers
  • Views 769 views
  • Users 0 members are here
Related

IF I switch the serial port from UART1 to UART0, What need I do ?

Former Member
Former Member over 10 years ago

HI,
    I designed a board based on the ZedBoard board. Compare to the Zedboard, I removed the USB port and switched the main serial port from UART1 to UART0 (pin MIO14 & MIO15) for my project. Furthermore, I use a chip named MAX232 connect to the output of pin MIO14 & MIO15 to change the output level. The other parts of my design, such as DDR, SD, QSPI and NETWORK are the same to the design of ZedBoard. The pin of MIO0 is also connect to the GND through a 510 ohm resistor.
   Now, when I run a "Hello Zynq" program generated from ISE tools through Jtag interface, I can get the output message from UART0, and flash the LEDs, such as the pin of MIO7 and MIO49. Moreover, in this work mode,  I also can add a user defined "IP CORE", and downloaded the related bit file to the chip to flash other LEDs.
   During this process, what I did in ISE tools is very simple. I selected EVM-ZedBoard-7020 as my base hardware configuration, where all the configuration is kept to default value. In "Zynq PS Configuration" dialog box, I firstly disabled the USB0 and UART1,  And then I enabled UART0 and allocated MIO14 & MIO15 (pullup is enabled) for this peripheral. 
   However, when I run the same program (for the sake of simple, not include any user IP COREs, just operating "PS") from SD card. I still can flash the LEDs from program, but I can't get anying from UART0........
   Have I left anything out???
   I am sorry , I am a novice of these design tools. Any help will be appreciated. 
   Thank you!
Best Regards,
vs

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

    I don't see anything inherently incorrect with what you describe. If I understand correctly you get an output from UART0 if you configure your board using JTAG but not if you configure the same design via SD Card? If they designs are not the same I would suggest using exactly the same configuration both times. You might check your BSP settings to make sure that UART0 is set to be the std_in and std_out.

     

    Given that the signals you have selected are all connected to the JE PMOD connector on the ZedBoard you could verify your basic operation on a ZedBoard by connecting your MAX232 to JE.

     

    -Gary

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

    Hi Gary,
      
       Thank you for your reply!
       Yes, your understand is correct. As you suggest, I have used the same program to test two different work modes(JTAG & SD card).Moreover,if I run the same program on the ZedBoard via SD card, I can't get any output from UART0 too.

       According to your advice, I searched to all the BSP files with the keyword of "STDOUT" and "STDIN". However, I can't find any important clues. Closest I can think of is adding the sentence "#define STDOUT_BASEADDRESS XPAR_XUARTPS_0_BASEADDR" in the file of fsbl_debug.h. But the STDOUT_BASEADDRESS seems not to be defined originally in these BSP files.

       Could you tell me how to check my BSP settings to make sure that UART0 is set to be std_out ?
       Thank you very much!
       
    Best Regards,
    vs

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

    Hi Gary,

       I have checked my BSP settings of my "hellozynq" project,and I can find the following definition
    ...
    #define STDIN_BASEADDRESS 0xE0000000
    #define STDOUT_BASEADDRESS 0xE0000000
    ...
    in the file of "..hellozynqps7_cortexa9_0includexparameters.h". According to this, can I believe that the UART0 is set to be the std_in and std_out?

    However,I still can't get anything from UART0.

    Thank you very much!
    Best Regards,
    vs



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

    To check the BSP stdin - stdout settings in the SDK right click on your BSP in the Project Explorer pane on the left.

     

    Select 'Board Support Package Settings' from the dialog box and then select 'standalone'. The value for stdin and stdout should be ps7_uart_0 for your application.

     

    -Gary

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

    Thank you very much Gary, you are right! I get it...

    • 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